Skip to content

v2.0.0

Compare
Choose a tag to compare
@juliangarnier juliangarnier released this 23 Feb 15:18
· 470 commits to master since this release

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 and round 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() and animation.restart() no longer accept arguments
  • anime.list is replaced by anime.running
  • No more ...Bounce and OutIn... 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