talira

Anime.js

A fast, modular JavaScript animation engine for CSS, SVG, DOM and JavaScript objects

open sourceMITfree

Anime.js is a free, MIT-licensed JavaScript animation engine by Julian Garnier. One API animates CSS properties, individual transforms, SVG and JavaScript objects with keyframes, built-in easings and springs, and it adds timelines, staggering, scroll-synchronised animations, a draggable API, SVG shape morphing, line drawing and motion paths, and media-query scopes. It is modular, so you import only the parts you use, and it can drive the Web Animations API.

Problems it solves

  • animate elements on my website with JavaScript without a heavy library
  • morph one SVG shape into another and draw SVG lines on scroll
  • stagger an animation across a grid of elements

Features

  • animate CSS properties, individual transforms, SVG and JavaScript objects with one API
  • keyframes, built-in easings and springs
  • timelines to sequence animations and keep callbacks in sync
  • stagger utility for time, value and timeline-position staggering
  • scroll observer to trigger and sync animations on scroll
  • draggable API with snap, flick and throw
  • SVG shape morphing, line drawing and motion paths
  • modular imports to keep bundles small

Alternatives

The same job

These do what Anime.js does.

  1. GSAP A wildly robust JavaScript animation library built for professionals
  2. Motion A highly configurable program that monitors video signals from many types of cameras
  3. Motion Animation library for React, JavaScript and Vue
  4. AutoAnimate Zero-config animation utility that adds transitions with one line of code
  5. mo · js JavaScript motion graphics library for the web: shapes, bursts, swirls and staggered animations
  6. canvas-confetti Performant confetti animations in the browser on a canvas

Compare Anime.js with the top 3