v4.3.0

juliangarnier/animev4.3.0Jan 20, 2026by juliangarnier

AI Summary

Introduces the `createLayout` method for animating layout states, supports function-based easings, and increases performance limits.

Key Highlights

  • New `createLayout()` method for layout animations
  • Function-based easing support
  • Max FPS increased to 240
  • New `composition` parameter to disable composition for performance

New Features

  • AutoLayout capabilities
  • Function-based easings
  • Mute callbacks parameter for completion
  • Improved WAAPI animation removal

Full Release Notes

## New Features
- **AutoLayout**
  - New `createLayout()` method to easily animate between two layout states (learn more about layouts here:  https://animejs.com/documentation/layout)
- **Easings**
  - The `ease` parameter now accepts function-based values (like `duration` and `delay` properties)
- **Timeline**
  - Add `composition` parameter to disable animation composition when using `.add()` and greatly improve performance

## 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
- **WAAPI**
  - Fix animations not being properly removed from `document.timeline` in some cases
- **Draggable**
  - Fix spring parameters not properly setting the duration
- **Timeline**
  - Fix spring easing being ignored when defined in the `defaults` parameter
  - Fix `.call()` and `.sync()` incorrectly inheriting `delay` from `defaults` parameters
- **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 `muteCallbacks` parameter to `.complete(muteCallbacks)` to complete the animation without triggering callbacks