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 customize transitions? #10

Open
yang opened this issue Jun 21, 2018 · 5 comments
Open

How to customize transitions? #10

yang opened this issue Jun 21, 2018 · 5 comments

Comments

@yang
Copy link

yang commented Jun 21, 2018

Thanks for the wonderful library! How does one tweak the animation in play, such as easing/spring parameters, duration, etc.?

@davidkpiano
Copy link
Owner

You can pass parameters into:

const flipping = new Flipping({
  duration: 300,
  easing: 'ease-in-out'
});

etc.

@yang
Copy link
Author

yang commented Jun 21, 2018

Is it possible to customize this on a per-element (flip-key) level?

@yang
Copy link
Author

yang commented Jun 21, 2018

Or rather, per (element, property)

@davidkpiano
Copy link
Owner

No, but that's a good idea. I'm still thinking of the proper API for that, it will likely be state-machine based.

@phelma
Copy link
Contributor

phelma commented Aug 21, 2018

I created a PR to add this to the readme #14

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

No branches or pull requests

3 participants