Anime.js 2.1.0 已发布,Anime 是一个灵活且轻量级的 JavaScript 动画库。和 CSS,独立变换,SVG,DOM 属性和 JS 对象配合使用。
改进
- Children animations can now inherit properties from their parent timeline (targets, duration, delay, easing, round) (#152)
- Add support for vmin/vmax/ch units
- Add support for the transform
perspective
property (#207) - Add support for circle, rect, polyline, polygon and line shapes for
anime.setDashOffset()
(#145, #155) duration: 0
now instantly finish the animation (#228, #208)- Animation initial values are now automatically set even if autoplay is false
Bug 修复
- Fix timeline Callbacks at initialisation (#215)
- Fix timeline Promise being called instantly (#159)
- Fix wrong values re-composition for complex CSS properties (like
filter
,box-shadow
,calc()
…) (#119, #174, #175, #167, #223) - Numerical values are not converted to strings anymore (#116)
- Relatives values now keep their unit (#214)
- Seeking an animation to 0 now correctly set the initial properties values (#177, #208)
run
callback is now properly called after animation delay
转自 http://www.oschina.net/news/88802/anime-2-1-0