The project's README from github.com/juliangarnier/anime. As one markdown file: README.md.
Anime.js is a fast, versatile and lightweight animation engine for the web, with a simple yet powerful API and a visual editor.
It works with CSS, SVG, HTML, WebGL, WebGPU and Canvas2D objects.
Anime.js is 100% free and is only made possible with the help of our sponsors. Help the project become sustainable by sponsoring us on GitHub Sponsors.
|
|
|
|
|
|
|
|
|
Get featured here by becoming a GitHub Sponsor.
Anime.js works by importing ES modules like so:
|
|
The full documentation is available here.
Coming from V4, the breaking changes are listed in the V5 release notes. Coming from V3, follow the v3 to v4 migration guide here first.
First, run npm i to install all the necessary packages.
Then, execute the following scripts with npm run <script>.
| script | action |
|---|---|
dev |
Watches for changes in src/**/*.js, builds the ESM and CJS modules to dist/modules/ and creates type declarations next to them |
build |
Builds the ESM and CJS modules to dist/modules/, the ESM and UMD bundles to dist/bundles/, and creates type declarations in dist/modules/ |
test |
Builds, then runs the type checks and the Node and browser test suites |
test:browser |
Starts a local server and runs all browser-related tests |
test:headless |
Runs the browser test suite in headless Chrome and reports pass / fail |
test:node |
Starts Node-related tests |
typecheck |
Checks the types of the source, the tests and the examples |
open:examples |
Serves the examples with an index of all pages. They run dist/modules/, so run dev beside it |
open:examples:editor |
Serves the examples with the Anime.js editor |
open:playground |
Serves the test playground pages with an index of all pages, run dev beside it |
open:playground:editor |
Serves the test playground pages with the Anime.js editor |