Skip to content
Blog
Anime.js logo

Anime.js

A lightweight, MIT-licensed JavaScript animation engine.

Verdict: is Anime.js a fit?

Good fit for

  • SVG and UI motion when you want an OSI license

Not a fit for

  • Programmatic video rendering on its own (pair it with a renderer such as HyperFrames)

Install

  1. npm

    npm install animejs

    Source: npm

Not verified: we have not run these commands. They come from the listed sources.

Context

Anime.js animates CSS, SVG, DOM attributes and JavaScript objects with timelines and a small API. Version 4 added a modular build. It is the go-to MIT alternative when you want GSAP-style timelines without GSAP's license.

Requirements

  • A browser or bundler that supports ES modules (v4)

Key facts

  • Animates CSS properties, SVG, DOM attributes and plain JavaScript objects.

    README

    Documented. Based on official documentation and published sources; not run by us.
  • Version 4 is imported as ES modules (import { animate, stagger } from 'animejs'); a v3 to v4 migration guide exists.

    README, Usage and V3 Migration guide

    Documented. Based on official documentation and published sources; not run by us.
  • The library is free and funded by GitHub Sponsors.

    README, Sponsors

    Documented. Based on official documentation and published sources; not run by us.

Strengths and limitations

Strengths

  • MIT license.
  • Small and fast.
  • Timeline API that renders deterministically when paused and seeked.

Limitations

  • Smaller plugin ecosystem than GSAP.
  • Fewer agent-specific guides.

Alternatives considered

Tools that do the same job as Anime.js. Stars were checked on the date shown on each page.

Anime.js compared with its alternatives
ProjectLicenseLanguageLayerStars
Anime.js logo
Anime.jsthis page

A lightweight, MIT-licensed JavaScript animation engine.

MIT · 74.4k stars

MITJavaScriptAnimation74.4k
GSAP logo
GSAP

The JavaScript animation platform - now free, including every plugin.

Standard 'No Charge' GSAP License · 30.3k stars

Standard 'No Charge' GSAP Licensenot OSIJavaScriptAnimation30.3k
mo.js logo
mo.js

A motion-graphics toolbelt for bursts, shapes and playful UI effects.

MIT · 18.9k stars

MITJavaScriptAnimation18.9k

Works well with

Tools that sit next to Anime.js in the same stack.

Tools that work with Anime.js
ProjectLicenseLanguageLayerStars
HyperFrames logo
HyperFrames

Write HTML, render it to MP4 - built with coding agents in mind.

Apache-2.0 · 80.4k stars

Apache-2.0TypeScriptRender engine80.4k
R
Rough.js

Hand-drawn, sketchy-looking graphics for canvas and SVG.

MIT · 21.4k stars

MITTypeScriptAnimation21.4k

Sources

  1. Anime.js on GitHub (accessed )
  2. juliangarnier/anime README (accessed )

Spotted a mistake or outdated fact?Report an error(opens a GitHub issue).