Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scroll reveal animation is firing only once #149

Open
burakkbilginn opened this issue Apr 19, 2023 · 1 comment
Open

Scroll reveal animation is firing only once #149

burakkbilginn opened this issue Apr 19, 2023 · 1 comment

Comments

@burakkbilginn
Copy link

burakkbilginn commented Apr 19, 2023

I am trying to use this library on scroll revealing animations, and animate my components on every viewport Enter and on every viewport Exit both. But I couldn't find a way to trigger the animation when rereturn to the element's scroll position after scrolling away from the element to animate. I mean while scrolling, the element animates once and never again. In your documentation I couldn't find a way to achieve this. Can you help? Is there any props to achieve this? And how is the implementation if yes?

@shivansh84ya
Copy link

Hi @burakkbilginn,

I'd like to work on this issue. Could you please assign it to me?

For a short approach, I plan to:

  1. Investigate the current implementation of the scroll reveal animation to understand why it only triggers once.
  2. Modify the logic to ensure the animation can trigger on both viewport enter and exit events.
  3. Add or update any necessary props to allow for this behavior.
  4. Update the documentation to reflect these changes.

Thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants