Skip to content

CSS transforms handled by react-scroll-parallax are getting reset. #139

Closed
@rahuuzz

Description

@rahuuzz

Actual Behavior (bug)

state update is causing parallax to reset to initial after reaching endScroll.
An example for demo code can be found here

Expected Behavior

Expecting to prevent resetting the transformations done by react-scroll-parallax after endScroll position.

Steps to Reproduce the Problem

  1. Use the above code sandbox link. (Or create some parallax components and trigger some state update (i did it in onProgressChange))
  2. Scroll till the parallax completes ( scroll position = 460)
  3. See that the transformations are reset (on reaching scroll position 461)

Environment

  • Framework: next-js
  • Node Version: 14
  • Platform: macOS
  • Browser: Google Chrome 98.0.4758.109

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions