anime.js, motion engine for the web

Open source animation engine with timelines, staggers and SVG morphing. Version 5 adds a visual editor that writes your changes back into the code.

Anime.js editor showing a 3D engine model on the canvas, a timeline of animation tracks below, and parameter controls on the right
Home
Resources

anime.js, motion engine for the web

The layout is finished. Every card sits on the grid, the spacing is right, and the page looks correct in a screenshot. Then a visitor opens it and nothing moves, so the whole thing reads like a wireframe with real text. anime.js exists for that moment. It turns a static layout into motion with a few readable lines of JavaScript, and more than 75,000 people have starred it on GitHub.

What anime.js actually does

anime.js is an animation engine for the web, published as the animejs package under the MIT license. You point it at elements, describe the values you want them to reach, and it runs the whole sequence on a single frame loop. CSS properties, SVG attributes, plain HTML attributes, and ordinary JavaScript objects all take the same calls, which is why one library covers a loading spinner, a chart reveal, and a logo draw-on without three different tools.

The numbers are current as of December 2026. Version 5.0.0 shipped on 1 December 2026, the package has no runtime dependencies at all, and npm records about 4.9 million downloads a month. The repository passed 75,000 stars, and the source lives at the anime.js repository. The author, Julian Garnier, keeps the API shape across major versions and ships a migration guide for each jump.

Installation is one line, and the modern build is pure ESM:

  • npm i animejs
  • import { animate, stagger } from "animejs"
  • animate(".card", { y: 24, opacity: 1, delay: stagger(60) })

That third line is the whole pitch. Nine words move twenty cards into place with a sixty millisecond offset between them. The same call accepts duration, loop, alternate, and any easing you name, and every property is optional.

Why motion ships last and gets noticed first

Motion is the first item cut from a sprint and the first thing a user feels. A dropdown that appears over 120 milliseconds reads as responsive. The same dropdown appearing instantly reads as cheap, even when the latency is identical. Nobody files a bug about it, and everybody notices it.

The usual reason it stays cut is cost. A CSS transition handles a hover state, and then the real sequence arrives: six cards that arrive one after another, a number counting up, a line that draws itself along a path. Each of those needs its own keyframes, its own timing, and its own cleanup code. By the fourth one the stylesheet has a section nobody wants to touch.

A timeline collapses that work into an object you can read. You add children in order, give each a duration, and the engine handles the queue. Change one number and the rest shifts with it. That is the difference between animation as a feature and animation as a chore.

☞ If a motion detail only appears in the first three seconds of a session, it is doing onboarding work. Treat the timing with the same care as the copy.

How the engine works

Four objects cover almost everything, and each one answers a different question.

  • ❶ animate() moves values once. Targets can be a CSS selector, a DOM node, a NodeList, or an array. Values are absolute, relative, or returned by a function per target.
  • ❷ createTimeline() sequences several animations. Position parameters decide whether a child starts after the previous one, at the same time, or at an offset you give in milliseconds.
  • ❸ stagger() distributes a delay across a group. The delay can start from the first item, the centre, or a grid cell, and the grid can be three dimensional when the layout is.
  • ❹ onScroll() links a timeline to the scroll position, so a page can scrub an animation instead of playing it.

SVG gets its own helpers, because SVG is where most web motion lives and where most libraries give up. svg.draw animates a stroke along a path the way a pen would, svg.morphTo interpolates one path shape into another, and svg.motionPath sends an element along a curve. Text is handled by splitText, which breaks a string into words and characters, then into lines, so a headline can arrive letter by letter without extra markup.

Two more objects matter once the motion needs input. createAnimatable returns an object whose properties you set directly, which suits cursor followers and audio meters. createDraggable adds pointer dragging with velocity and snapping, plus optional bounds. Both run on the same clock, so a dragged card and a fading label stay in sync.

Under all of it sits one requestAnimationFrame loop. Every animation and timeline, plus every draggable, registers with the same engine. A page with twenty effects still runs a single loop instead of twenty competing ones.

What version 5 changed

Version 5, released at the start of December 2026, adds the piece that was missing for designers. The Anime.js editor reads the animation in your code, draws it as controls and a timeline in the browser, and writes your adjustments back into the source. You drag a keyframe, the file changes. That is a different deal from a timeline you build by hand and then describe to someone in a meeting.

The rest of the release is quieter and more useful day to day. Springs gained stretch(), which makes a spring settle in a given time while keeping its bounce. A muted parameter turns value updates off while keeping the timing intact, which is how you test a sequence without moving anything. utils.parseColor() reads hex, rgb(), hsl(), oklab(), and oklch() strings, so palette work no longer needs a converter.

The previous major release brought adapters. registerAdapter() teaches animate() about a target type it does not know, and an official three.js adapter animates objects, materials, lights, and cameras from the same API. If your product draws in WebGL, the animation layer is not a separate system any more.

Use cases

For a founder

  • → A landing page built from a template needs to feel custom. One timeline brings the hero headline in by word, lifts the product screenshot, and holds the call to action for the last beat.
  • → A dashboard launches and the numbers jump from zero. A counter animation over 800 milliseconds makes the first load look intentional instead of broken.
  • → A pricing page has three plans and no motion designer. A staggered entrance takes an afternoon and separates the page from every competitor using the same layout.

For a designer

  • → A handoff needs a motion spec. The editor turns the timing into visible tracks, so the developer reads the same curve you signed off on.
  • → A logo needs an animated reveal for a deck. svg.draw traces the existing paths, so the mark does not have to be redrawn for motion.
  • → A prototype in our React UI kit gets a page transition that actually matches the intent, without waiting on a motion library evaluation.

For a coder

  • → A React app needs scroll linked reveals. onScroll() plus a timeline replaces a wrapper library and a hook stack.
  • → A chart library exports SVG and the client wants it animated. svg.morphTo handles the shape change between two datasets.
  • → A mobile web build stutters. One engine loop and transform-only properties are a shorter fix than auditing a pile of independent CSS animations.

Frequently asked questions

Does anime.js work with React and Next.js?

Yes. The package is framework agnostic, so you import it inside a component and pass a ref or a selector as the target. In Next.js, calls that touch the DOM belong in useEffect or in a client component, which is the same rule every animation library follows.

How big is the bundle?

The full minified bundle is about 128 KB, and you rarely ship all of it. The package ships ES modules, so a bundler keeps only the functions you import. A page using animate and stagger carries a small fraction of that figure.

Can I use it in commercial work?

Yes. The license is MIT, which covers paid products, client work, and modification. Keep the license notice in the source and nothing has to appear in your interface. The project is funded by GitHub sponsors instead of a paid tier.

Do I still need CSS animations?

For hover states and simple fades, CSS is fine and costs nothing. Reach for the engine when you need a sequence, a stagger across many items, a value that depends on scroll position, or coordination between several elements. Mixing both on one page is normal.

Why it belongs in your stack

A product feels faster when the interface answers the click. That answer is a design decision, and it needs a tool that does not fight the rest of the page. anime.js covers CSS, SVG, text, and canvas targets from one API, runs one loop, and adds nothing to your dependency tree.

Start with one moment that matters, usually the first screen or the moment a result appears. The breakdown of scroll driven 3D animation shows how far a single timeline can carry a page, and the open source tools digest places it next to the rest of the stack we track. When the motion is about icons rather than layout, react-useanimations handles hover states and Amicro collects ready-made micro-interactions you can drop into a landing page.

For a designer working between Figma and code, the design and code kits and the other free resources follow the same pattern of one small tool that removes a specific chore.

Related articles

How to make 3D animation effect on page scroll HTML & JS

UI Design

9 min read

How to make 3D animation effect (like AirPods website) as you scroll the page

Learn how to create a webpage with the same interactive effect as the Apple AirPods page in this tutorial. Get step-by-step instructions for achieving this dynamic design.

Ten pastel cards with bold black tool icons, one slot left empty and dashed

Tools

11 min read

10 open source tools we bookmarked in September and October 2026

Ten tools we added to Resources this autumn, with the caveat that matters for each one.

A toggle isn't always the right control

UI Design

7 min read

Toggle switch UI design, anatomy, states and mobile behavior

Toggle anatomy, every state, alignment and spacing rules, mobile behavior and the five common mistakes behind broken toggles.

More free resources

Glisse playground with a glass tab bar of Home, Search and Library floating over orange gradient wallpaper, and sliders for size, depth and bend below

UI components

Glisse, Apple Liquid Glass in React

React components made of real Liquid Glass. Controls bend, frost and light whatever sits behind them, from buttons and sliders to sheets and tab bars.

Openvector editor turning a five colour bitmap into five SVG paths with a size comparison

Design and AI tools

Openvector, raster images to clean SVG

Open source tracer that turns raster images into editable SVG, PDF, EPS, AI, DXF and EMF. Runs on desktop, in the browser tab, in the terminal, or from node.

Tilted iPhone with the expanded tab bar, a profile row and an idle status

UI components

Liquid Glass bottom tabs for Expo Router

Bottom tab bar for Expo Router that grows into a workspace and profile card. Liquid Glass on iOS 26, springy motion from Reanimated, all source in TypeScript.

Archify editor showing a generated agent workflow map with planner, approval gate and trace log

Design and AI tools

Archify, system diagrams from your agent

Agent skill that turns a repository or a one-line description into a single interactive HTML diagram. Ten diagram types, Apache 2.0 licence, no account needed.

Masonry photo grid of landscape shots, a husky portrait and bokeh lights, with a plus two counter on the last tile

UI components

Ramka, the headless lightbox for React

Headless lightbox primitives for React with View Transition morphs, native scroll swiping and pinch to zoom. MIT licensed, zero runtime dependencies.

desigma launch cover with the headline the design tool you actually own, a download button, the editor on four phone screens and a layers panel

Design and AI tools

Desigma, a design tool written in Rust

Open source design tool in Rust for macOS, Windows and Linux. Opens real Figma files, keeps components and variables, and runs offline with no account.

Looseleaf, 123 hand-drawn shadcn/ui components

UI components

Looseleaf, 123 hand-drawn shadcn/ui components

Every shadcn/ui part redrawn as paper and ink, with 123 components, 61 blocks, 160 icons. Installs as source through the shadcn registry, MIT licensed.

react-useanimations, 300 animated icons

Icons and animations

react-useanimations, 300 animated icons

300 free animated icons for React with hover, click and loop interactions built in. Zero dependencies, an 8 kB player, and reduced-motion support.

Matita icons, 200 pencil-style glyphs

Icons and animations

Matita icons, 200 pencil-style glyphs

200 pencil-style icons as SVG files and React components. Every stroke overshoots like a ruled pencil line, and the whole set is free under the MIT license.

CleanYourTV — Android TV without the ads

Desktop utilities

CleanYourTV — Android TV without the ads

Open source setup that disables ad services and bloatware on Android TV and Google TV over Wi-Fi. No root, nothing uninstalled, one line restores it.

Gr8r Studio — calm project management workspace

Self-hosted apps

Gr8r Studio — calm project management workspace

A calm project workspace with dashboard, inbox, board, calendar and timeline views. Plain JavaScript modules, no UI framework, zero runtime dependencies.

Spectrum UI — animated React components you copy and own

UI components

Spectrum UI — animated React components you copy and own

Open source React and Tailwind component library for animated interfaces. Buttons, cards, loaders, and text effects arrive through one CLI command and land in your own repo as editable files.

Compositor — free Photoshop alternative for macOS

Design and AI tools

Compositor — free Photoshop alternative for macOS

Free and open source Photoshop alternative for macOS. Layers, masks, PSD import, and a project format any AI agent can read and write.

Mailcheap, self-hosted newsletter on Amazon SES

Self-hosted apps

Mailcheap, self-hosted newsletter on Amazon SES

Self-hosted newsletter on Amazon SES. Write an issue, send it to your list, publish an archive, and pay about $0.10 per 1,000 emails with no per-subscriber fee.

Liquid Glass for React

UI components

Liquid Glass for React

Glass surfaces and controls for React on the web and in Electron. Clear and Regular materials refract live content, and every control runs on Base UI behavior.

REA — reverse engineering MCP for AI agents

Design and AI tools

REA — reverse engineering MCP for AI agents

Give your AI agent an MCP server that reverse engineers any app: native binaries, Electron, .NET, APKs, and websites. Analysis runs locally, MIT licensed.

FSearch — whole-disk file search for macOS

Desktop utilities

FSearch — whole-disk file search for macOS

Find any file on your Mac in about a millisecond, typos included, and search inside text files. Whole-disk index in Rust, MIT licensed, one small daemon.

@sfinterface/numbers — rolling numbers for React

UI components

@sfinterface/numbers — rolling numbers for React

React component that turns only the digits that changed. 13 kB, no dependencies, Intl formatting, five transitions, and reduced-motion support.

RuneIcons — open source icon set for modern UIs

Icons and animations

RuneIcons — open source icon set for modern UIs

Thousands of clean, consistent SVG icons for web and app interfaces. Open source, MIT licensed, and ready to drop into Figma, React, or plain HTML today.

Amicro — micro-interactions for any landing page

Icons and animations

Amicro — micro-interactions for any landing page

Open source collection of ready-made micro-interactions: hover glow, magnetic buttons, scroll reveals. Copy a snippet, paste into any page, ship motion today.

M3E Canvas — Material 3 Expressive UI builder

Design and AI tools

M3E Canvas — Material 3 Expressive UI builder

Assemble Material 3 Expressive interfaces in your browser and export a ready-to-use prompt for AI. Open source, free, and built for Android vibe coding.

Driver.js — product tours & onboarding

UI components

Driver.js — product tours & onboarding

Lightweight, vanilla JavaScript library for building powerful product tours, feature highlights, and contextual onboarding. No dependencies, just 5kb gzipped, fully customizable and accessible by default.

pdfcn — PDF viewer component for React

UI components

pdfcn — PDF viewer component for React

Open source PDF viewer built on the shadcn stack. Renders documents inside your React app with zoom, search, and navigation. No iframe, no vendor lock-in, MIT license.

Free invoice template for Figma

Figma templates

Free invoice template for Figma

Clear and simple table-based document for your business purposes. Powered by editable data grid, which is easy to manage.

Avatar UI design templates & tips

Figma templates

Avatar UI design templates & tips

A part of the upcomong design handbook «The State of Component». Colors, Styles & UI design for Avatar. Events, States and Actions. Including layout samples for inspiration.

App Bar UI design templates & tips

Figma templates

App Bar UI design templates & tips

Application Bar (aka Navigation Bar) — displays prior in-app controls related to the current app section. This freebie contains things to consider when designing App Bars.

Fonts Playground

Figma templates

Fonts Playground

Best web fonts precisely handpicked and optimised for better web legibility and ready to implement into your Figma project.

Website Template

Figma templates

Website Template

Landing page template made for Figma. Contains styled components UI kit, desktop & mobile versions. Global styles, Inter, FlatUI colors.

Android UI kit

Figma templates

Android UI kit

8 mobile app templates based on popular Android UI design patterns: Calendar, Cards, Tasks, Kanban & Project management and more.

Figma iOS UI kit

Figma templates

Figma iOS UI kit

iOS native components and app templates organised into a «Most Design System» fully compatible with Human Interface guidelines.

Material X Starter

Figma templates

Material X Starter

Top-notch styled components in the design system powered by Auto-layout. Ready-to-use Figma UI kit with styles from the nearest future.

Radar Chart

Figma templates

Radar Chart

Radar chart template made of components and available within a range of popular viewports: desktop, tablet and mobile. Light & Dark.

Rome UI kit lite

Figma templates

Rome UI kit lite

Components & templates for desktop & mobile apps. Powered by clean and trendy custom guidelines and DM Sans font (OFL).

Xela UI kit starter

Figma templates

Xela UI kit starter

100+ variants of several components to craft perfectly shaped desktop & mobile apps. Modern styleguides and free Nunito Sans font.

Free iOS UI kit

Figma templates

Free iOS UI kit

Customisable & adjustable mobile design system with 100+ variants for a set of components and 8 ready-to-use app layouts to try out.

Mobile-X UI kit

Figma templates

Mobile-X UI kit

Meet Mobile-X Figma design system for mobile app design. Cross-compatible & stylish UI kit which fits both iOS / Android apps.

Accordion guide

Figma templates

Accordion guide

The exploration for Accordion component: styles, states, samples, and use cases for desktop & mobile viewports.

Eclipse UI kit

Figma templates

Eclipse UI kit

Fine components fully loaded with variants, auto-layout, global text & color styles. Hi-end customizable Figma design system (starter).

Appka iOS UI kit

Figma templates

Appka iOS UI kit

Appka is a fine-themed & customized iOS design system with 4100+ variants for 28 components and 280+ ready-to-use app layouts for Figma.

Nav templates

Figma templates

Nav templates

This design resource represents navigation components. It contains sidebars, drawers and headers both in light & dark modes.

Dark charts UI kit

Figma templates

Dark charts UI kit

Try out this handy source of graphs for your next dashboard, pitch, or even print materials. Contains most common dark chart templates.

Figma email templates

Figma templates

Figma email templates

Five awesome and scalable free email templates to engage your subscribers. Dark & light themes. Contains buttons, lists and cards.

Charts widgets dark & light

Figma templates

Charts widgets dark & light

Line & Wave charts, Bars, Histograms, Ratings and more graphs widgets are available in this free Figma resource. For dashboards, mobile & desktop.

Shopping layout for web app

Figma templates

Shopping layout for web app

Contains navigation, filtering components, tabs, cards and more. This layout was made with Angular and fully coded.

Orion dark templates

Figma templates

Orion dark templates

Figma library with 40+ desktop charts templates served in light & dark themes. Contains 200+ of dataviz widgets for every case.

Responsive imagery cards

Figma templates

Responsive imagery cards

A variety of responsive cards templates for Figma. Constrained and scalable. Made with global styles for typography and colors.

Landing page & web blocks

Figma templates

Landing page & web blocks

Use given blocks as a quickstarter for your very next web design mission. This freebie contains 3 landing pages for desktop, tablet & mobile.

Mobile tables several themes

Figma templates

Mobile tables several themes

Components-driven iOS layouts with data grid made from one singe cell. Based on different styles. Allows to create better tables in Figma.

12 free mobile templates

Figma templates

12 free mobile templates

Use our Full iOS design system as the starter for your next mobile app. This freebie includes 12 screens dark & light powered by 200+ components.

Calendars & Date picker templates

Figma templates

Calendars & Date picker templates

UI design resource with 56 calendars extracted from our popular UI kits. All the best samples of schedule patterns, planners, event managers.

Schedule & Events template

Figma templates

Schedule & Events template

This clean calendar template has been made of a scalable grid, accurately made with colored items and wrapped for the desktop.

Material You for web apps

Figma templates

Material You for web apps

Figma Material Design 3 starter fully loaded with several desktop & mobile templates (with dark themes) and a bundle of components.

iOS Datepickers

Figma templates

iOS Datepickers

Stand out with our Figma iOS date picker. Offering a true-to-life isometric design and easy-to-edit text, it's the most realistic option.

Segment UI kit

Figma templates

Segment UI kit

Design stunning Android apps with our free Figma UI kit. Follow Android guidelines and components and use our fonts, colors, and templates.

Figma React UI kit

Figma templates

Figma React UI kit

Our Figma React UI kit 2-in-1 makes web app building faster. Created in Figma, exported to React, and customised with Blueprint.js library.

Messenger app desktop template

Figma templates

Messenger app desktop template

Effortlessly create world-class communication design with our Messenger Template for Figma. With dark and light mode options.

Zeus UI free website template

Figma templates

Zeus UI free website template

Zeus Web UI kit-inspired landing page template. Supports all viewports, card-driven UX, polished with Syne and Space Grotesk fonts.

Design system starter

Figma templates

Design system starter

Launch your project with confidence thanks to our Figma design system. Customize grids, text, color, gradients, and shadows with ease.

Navigation layout 4 samples

Figma templates

Navigation layout 4 samples

Sleek Navigation Menu for Material X design system in Figma. Various sizes and design options. Features badges and active state highlight.

Chart cards

Figma templates

Chart cards

Make your data pop with our easy-to-use Charts UI kit. Featuring bar charts and heatmaps, it's perfect for dataviz, dashboard, pitches and others.

Material UI styled

Figma templates

Material UI styled

New and improved Material UI Kit, refreshed with enhanced material.io guidelines. Free and ready-to-use components included.

Hyper charts

Figma templates

Hyper charts

Transform your data into captivating visuals with several Figma's chart templates based on Hyper Charts kit. You'll find 8 editable widgets inside.

Search inputs

Figma templates

Search inputs

Explore how Figma inputs are revolutionizing search interface design. Gain key insights to enhance user experience with impeccable UIs.

Figma Grid Layouts

Figma templates

Figma Grid Layouts

This template is designed to help you create templates that are beautifully balanced. Features both mobile and desktop layouts with 16/24 gutters.

Panda dashboard template

Figma templates

Panda dashboard template

Build sleek dashboards with our Panda UI kit starter! Featuring a 1920w desktop template, UI widgets, and components.

Orion dataviz templates

Figma templates

Orion dataviz templates

The design system starter for your next application. This resource contains 6 dashboard templates and a bundle of UI design widgets.

Subscribe to Setproduct

Once per week we send a newsletter with new releases, free resources and blog posts

By clicking Sign Up you're confirming that you agree with our Terms and Conditions.