davidkpiano / flipping

Flipping awesome animations.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to customize transitions?

yang opened this issue · comments

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

You can pass parameters into:

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

etc.

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

Or rather, per (element, property)

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

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