anime.js v3.0.0 Release Notes
Release Date: 2019-01-09 // over 5 years ago-
๐ New features
- ๐ New easings: spring(mass, stiffness, damping, velocity) and steps(x)
- โ Add endDelay parameter
- ๐ New keyframes system
- ๐ New staggering helper
- ๐ New callbacks: loopBegin(), loopComplete(), changeBegin(), change() and changeComplete()
- Automatic CSS units conversion
- ๐ฑ Responsive motion path animation
- ๐ New set() helper to apply values instantly to multiple targets
- ๐ ES6 Modules and new build process
- ๐ New documentation
- A website.
๐ Bug fixes
- No need to re-define a transform property when animating multiple transforms on the same target in a timeline
- ๐ Improved simultaneous animations on the same target #257
- ๐ Allow remove() to remove targets from timeline #318 #286
- Reversed animations can now be delayed using endDelay #254
- ๐ Better inline style unit handling (check inline style before getComputedStyle) #251
- SVG scale property is no longer overridden by CSS transform scale #316
- ๐ Fix Uncaught โTypeError: Cannot read property 'targets' of undefinedโ when there are no TL parameters object specified #341
- ๐ Fix a bug that prevented specific HTML ids selectors to be selected (HEX colours) #281
- ๐ Fix wrong initial SVG transform value in some cases #340
API changes
- โ run() callback has been replaced by change()
- animations are now paused when tab of window is not active
- getValue() has been replaced by get()
- Cubic Bรฉzier curves are now defined using a string โcubicBezier(x1,y1,x2,y2)โ instead of an array
- Timeline offset property has been replaced by timelineOffset #229
- Timeline offset can be set as a second argument inside .add()