New Features
- AutoLayout
- New
createLayout()method to easily animate between two layout states (learn more about layouts here: https://animejs.com/documentation/layout)
- New
- Easings
- The
easeparameter now accepts function-based values (likedurationanddelayproperties)
- The
- Timeline
- Add
compositionparameter to disable animation composition when using.add()and greatly improve performance
- Add
Bug Fixes
- JS Animation
- Fix an issue where complex values containing a color (e.g.,
box-shadow) would be incorrectly handled as color values instead of complex string values
- Fix an issue where complex values containing a color (e.g.,
- WAAPI
- Fix animations not being properly removed from
document.timelinein some cases
- Fix animations not being properly removed from
- Draggable
- Fix spring parameters not properly setting the duration
- Timeline
- Fix spring easing being ignored when defined in the
defaultsparameter - Fix
.call()and.sync()incorrectly inheritingdelayfromdefaultsparameters
- Fix spring easing being ignored when defined in the
- splitText
- Fix a bug where the first word of the second line could be incorrectly added to the first line
- Fix unnecessary empty spaces not being properly removed from lines
Changes
- Engine
- Increase max fps to 240 (previously 120)
- Animation / Timer / Timeline
- Add
muteCallbacksparameter to.complete(muteCallbacks)to complete the animation without triggering callbacks