Anime.js is a lightweight JavaScript animation library with a simple, yet powerful API. It works with CSS properties, SVG, DOM attributes, and JavaScript Objects.
What are animejs's main functionalities?
Basic Animation
This feature allows you to animate basic properties like translation, rotation, and background color of a DOM element.
GSAP (GreenSock Animation Platform) is a powerful JavaScript library for creating high-performance animations. It offers more features and plugins compared to Anime.js, making it suitable for more complex animations.
Velocity is an animation engine with the same API as jQuery's $.animate(). It is designed for fast performance and is a good alternative for those who are familiar with jQuery animations.
Popmotion is a functional, flexible JavaScript animation library. It provides a more functional approach to animations compared to Anime.js, making it a good choice for developers who prefer functional programming paradigms.
Anime.js
Anime.js is a fast, multipurpose and lightweight JavaScript animation library with a simple, yet powerful API.
It works with CSS properties, SVG, DOM attributes and JavaScript Objects.
Usage
Anime.js V4 works by importing ES modules like so:
First, run npm i to install all the necessary packages.
Then, execute the following scripts with npm run <script>.
script
action
dev
Watch any changes in src/ and compiles the esm version to lib/anime.esm.js
dev-types
Same as dev, but also run TypeScript and generate the types/index.d.ts file
build
Generate types definition and compiles ESM / UMD / IIFE versions to lib/
test-browser
Start a local server and start all browser related tests
test-node
Start all Node related tests
open-examples
Start a local server to browse the examples locally
Our sponsors
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.
The npm package animejs receives a total of 160,698 weekly downloads. As such, animejs popularity was classified as popular.
We found that animejs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Ā It has 1 open source maintainer collaborating on the project.
Package last updated on 24 Apr 2025
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.