Anime.js animates CSS properties, SVG, DOM attributes, and JavaScript objects through a modular ES module API for browsers and npm installs.
Overview
Anime.js is a JavaScript animation engine aimed at web developers who need to animate interfaces and graphics in the browser. It exposes a single API that can drive CSS properties, SVG shapes and paths, DOM attributes, and plain JavaScript objects.
The library ships modular pieces so imports can stay small. Capabilities described in the documentation include timelines, stagger utilities, scroll-linked playback via a scroll observer, draggable elements with spring easing, SVG morphing and motion paths, scoped animations tied to media queries, and optional Web Animations API integration.
Version four is consumed as ES modules, with bundled builds and type declarations produced through standard npm build scripts. Examples can be served locally for experimentation. The project is free to use and funded through sponsor support.
Developers integrate it into front-end applications via package managers, composing animations with helper functions for draw effects, morphing, motion paths, and coordinated timelines.
Key features
- CSS, SVG, and DOM attribute animation
- Modular ES module imports
- Timeline orchestration API
- Scroll observer synchronization
- Draggable elements with springs
- SVG morph and motion path utilities
- Stagger and easing utilities
- Scope API for media queries
Use cases
- UI micro-interactions
- SVG line drawing effects
- Scroll-triggered animations
- Draggable interface elements
- Coordinated multi-element sequences