npm animejs 2.0.0
v2.0.0

latest releases: 3.2.2, 3.2.1, 3.2.0...
7 years ago

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

Don't miss a new animejs release

NewReleases is sending notifications on new releases.