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

Control the duration of animations #100

Closed
RichardPK opened this issue Nov 7, 2019 · 2 comments
Closed

Control the duration of animations #100

RichardPK opened this issue Nov 7, 2019 · 2 comments

Comments

@RichardPK
Copy link

RichardPK commented Nov 7, 2019

I may be missing something obvious here - but is there a prop to modify the length of time that an animation takes? Not staggering it based on another Flipped component, nor delaying its start - the equivalent of animation-duration, or is that actually just to be controlled by the CSS?

@aholachek
Copy link
Owner

Hi, react-flip-toolkit uses springs for animation instead of easings with durations,
Here's where they're mentioned in the docs.

There are some ways to play with spring durations, though. Using this site you can adjust the "frequency response" variable to your desired duration, then pass in the resulting stiffness and damping values into the spring prop as documented in the first link.

@RichardPK
Copy link
Author

Nice one thank you!

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