Skip to content

Question: why warn when min is greater than zero and max is less than zero? #17

Closed
@lsirivong

Description

@lsirivong

What the downside is of setting the offset min > 0 and offset max < 0?

With this setting I'm getting a warning

<Parallax
  offsetYMin={`25%`}
  offsetYMax={`-50%`}
  slowerScrollRate
>
  {numeral}
</Parallax>
Warning: Failed prop type: [offsetYMax] in Parallax is less than zero. [offsetYMax] must be greater than or equal to zero.

My intent was to have the content slide upwards while scrolling down the page. Is there an alternative way to create a reverse the parallax direction?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions