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 Anime.js 2.1.0 发布,轻量级 JavaScript 动画库下载地址