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

How to perform animation only once and until end position reached? #172

Open
0x7357 opened this issue May 23, 2022 · 3 comments
Open

How to perform animation only once and until end position reached? #172

0x7357 opened this issue May 23, 2022 · 3 comments

Comments

@0x7357
Copy link

0x7357 commented May 23, 2022

Is there any way to say "Hey, if you've reached your final position, please stay in that position"?

Something like a callback "onAnimationEnd(removeElement(self))"?

I'd love to get an answer.

Thanks

@alexfoxy
Copy link
Owner

alexfoxy commented Jun 4, 2022

Do you have an example? The final position depends on your configuration.

@0x7357
Copy link
Author

0x7357 commented Jun 4, 2022

You scroll down and the elements animate. For example, they fly from the left to their final position. How can I disable the animation once the element has reached its final position for the first time? Actually, I want to disable the animations on elements that I have already scrolled over, so that now when I scroll up, they are immediately at their final position.

@gvigroux
Copy link

I would like to achieve the same

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

3 participants