v4.3.0
Added 4
- New createLayout() method to easily animate between two layout states
- The ease parameter now accepts function-based values like duration and delay properties
- Add composition parameter to disable animation composition when using .add() to improve performance
- Add muteCallbacks parameter to .complete(muteCallbacks) to complete the animation without triggering callbacks
Changed 1
- Increase max fps to 240 (previously 120)
Fixed 7
- 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 animations not being properly removed from document.timeline in some cases
- Fix spring parameters not properly setting the duration
- Fix spring easing being ignored when defined in the defaults parameter
- Fix .call() and .sync() incorrectly inheriting delay from defaults parameters
- 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
From anime
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