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

Support for snapping #3

Closed
hirbod opened this issue Jun 17, 2020 · 2 comments
Closed

Support for snapping #3

hirbod opened this issue Jun 17, 2020 · 2 comments

Comments

@hirbod
Copy link
Contributor

hirbod commented Jun 17, 2020

It would be cool if a started animation (lets say scale from 0.75 to 1) could be snapped once triggered. Currently, it will stop where scroll/momentum ends and sometimes lead to weird positioning. Do you think something like this can be possible, maybe even with css snapping?

@hirbod
Copy link
Contributor Author

hirbod commented Jun 17, 2020

I did a trick on my setup for now. I've setup

(pseudo): 0vh: 0.75, 1vh: 1

and added a class to the my animated div with css transition set to 1 second.
It works great without any issues.

@luco
Copy link

luco commented Dec 23, 2020

@hirbod Can you post an example?

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