What's new?
- Up to 2 times faster
- Multiple keyframes by properties
- Animations timeline
- Custom bezier easing functions
- Promise support
- Relative values (+=, -=, *=)
- Reverse animations at anytime with
animation.reverse()
- Brand new documentation
Improvements
- New elastic easing functions (elasticity can slightly differ from v1.x)
- Improved playback and callback systems
- Motion path animation supports reverse and alternate directions
easing
,elasticity
andround
properties accept functions as value- Add
animation.paused
to check if the instance is running or not - Add
animation.reset()
to properly reset an animation - Simpler instance Object
Changes to consider when migrating from v1.x
update
callback is now called right after.play()
animation.ended
replaced by `animation.completed``animation.play()
andanimation.restart()
no longer accept argumentsanime.list
is replaced byanime.running
- No more
...Bounce
andOutIn...
built in easing functions - No more
animation.settings
, all parameters are now accessible directly at the root of the Object - Remove
will-change
support on CSS animation reverse
direction now make the animation goes from 100% to 0% instead of reversing tweens properties