juliangarnier / anime

JavaScript animation engine
https://animejs.com
MIT License
49.3k stars 3.66k forks source link

feat: FLIP animations #361

Open atomiks opened 6 years ago

atomiks commented 6 years ago

As seen here: https://popmotion.io/pose/learn/flip/

Any chance you could add an option like flip: true to performantly animate width/height etc?

juliangarnier commented 6 years ago

Interesting approach, I generally do this kind of optimisation manually, having it built-in could be a nice feature.

Maybe in a next release.

jamesarosen commented 3 years ago

FLIP has a lot of benefits. One of the biggest in my experience is that it makes it easy to pause and reverse animations. This is useful when a user cancels an action while it's in-progress.

https://aerotwist.com/blog/flip-your-animations/ has more info