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

Feature request: add a delay property for the animations #22

Open
leeprobert opened this issue Apr 21, 2022 · 1 comment
Open

Feature request: add a delay property for the animations #22

leeprobert opened this issue Apr 21, 2022 · 1 comment

Comments

@leeprobert
Copy link

I've been wondering how I can get an element to stay in position for a certain section of the scroll before it moves, zooms, fades out. This could be achieved by adding a delay to the animations so they don't start to animate for a certain number of pixels. So if you use a MoveOut function and add a delay of 20 then it will stay in its required position and not start to move out for the 20 pixels of scroll. Another option would be to add a sticky property so when using this option to position the element you also set how long it has to stay in position before it outros.

Does this make sense?

@1000ship
Copy link
Owner

1000ship commented Jun 6, 2022

In this module, the movement depends on only scroll progress.
So you can't make time-delaying, but you can control movement to make custom animation

check this out if you wanna know how animation objeect looks like
https://github.com/1000ship/react-scroll-motion#make-custom-animation

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