Anime.js, the all-in-one JavaScript animation engine
1 month ago
Anime.js is an all-in-one animation engine: a fast, flexible JavaScript library for animating the web. You get it with one command, npm i animejs. Keep an eye on the ring. It stays with us the whole way down the page, and every feature we reach lights up one more segment of it.
Ask about this presentation
Chapters
0:00All-in-one animation engine
0:16The complete animator's toolbox
0:34Intuitive API
0:49Enhanced transforms
1:08Scroll Observer
1:25Advanced staggering
1:39SVG toolset
1:52Springs and draggable
2:07Runs like clockwork
2:22Responsive animations
2:36A lightweight and modular API
2:49Our sponsors
3:01Start animating
Show transcriptHide transcript
Anime.js is an all-in-one animation engine: a fast, flexible JavaScript library for animating the web. You get it with one command, npm i animejs. Keep an eye on the ring. It stays with us the whole way down the page, and every feature we reach lights up one more segment of it.
This is the complete animator's toolbox. Break free from browser limitations and animate anything on the web with a single API. Every part of this machine is a module: the timer, easings, draggable, scroll and scope on one side, and animation, spring, SVG, stagger, timeline and the Web Animations API on the other.
It starts with an intuitive API, easy to use and still powerful. That square is four lines: rotate ninety degrees, loop, and ease in and out on an exponential curve. Every property can take its own parameters, the keyframe system is flexible, and the easings come built in.
Enhanced transforms let you animate translate, rotate and scale as separate properties, and blend them. Each shape here gets a random position, angle and duration, and with composition set to blend, overlapping animations on one element add up instead of cutting each other off. Individual CSS transforms, function based values, and blend composition.
The Scroll Observer synchronises and triggers animations on scroll. This sphere draws its lines one after another, and with autoplay set to on scroll and sync turned on, the drawing follows the scroll bar instead of a clock. There are several synchronisation modes, advanced thresholds, and a complete set of callbacks.
Advanced staggering makes effects like this one in seconds. It's a thirteen by thirteen grid of dots, staggered from the center, so both the size of each dot and the moment it starts ripple outward. You can stagger time, stagger values, and stagger positions on a timeline.
The SVG toolset morphs shapes, follows motion paths and draws lines. A race circuit draws itself, and a car follows the same path, turning with every corner. Shape morphing, line drawing, and motion paths, all built in.
Springs and draggable. Drag, snap, flick and throw HTML elements, and when you let go, a spring settles them: stiffness 120, damping 6, which is that wobble on the way back. The settings are versatile, the callbacks are comprehensive, and the methods are useful.
It runs like clockwork. The Timeline API orchestrates sequences and keeps callbacks in sync. The ticks bounce one after another while the hand sweeps a full turn in just under two seconds, both on one timeline. Synchronised animations, advanced time positions, and playback settings.
Responsive animations respond to media queries through the Scope API. In landscape these circles wave up and down. Turn a phone to portrait and the same code waves them side to side. Media queries, a custom root element, and scoped methods.
And it stays light. The API is modular, so your bundle carries only the parts you import. The timer at the core is about five and a half kilobytes, animation adds about five more, and the SVG helpers weigh about a third of a kilobyte on their own.
Anime.js is one hundred percent free, and it's only possible with the help of its sponsors. TestMu AI is one of them, and the funding goal stands at twelve percent. If your team ships with it, this is where you give back.
Every segment is lit. To start animating, the documentation covers each module in depth: getting started, the timer, animation, timelines, draggable, scroll, SVG, easings and the rest. Install it with npm i animejs, and the docs are at animejs.com.
Up next
2:22Put a 3D model on a slide, declared in HTML: three.js and anime.js in Bisque presentations
@siderakis
1 month ago
3:51Explain every GitHub release to the people deciding whether to upgrade
@siderakis
1 month ago
8:14Inside mattpocock/skills, the 25 agent skills 270,000 GitHub users starred
@siderakis
2 months ago
3:00Your coding agent can present its work: /present, the open-source skill
@siderakis
2 months ago
2:44Run a real LLM on your desk, starting at $899
@siderakis
3 months ago
1:43Your agents have a lot to tell you
@siderakis
3 months ago
2:23This Week in Bun
@siderakis
3 months ago
3:14The Claude system card, in 3 minutes
@siderakis
3 months ago
2:19Week in review, from git
@siderakis
3 months ago
3:06Research → briefing: the launch playbook
@siderakis
3 months ago
2:41PR walkthrough: the heteronym fix
@siderakis
3 months ago
2:00Office hours → team briefing
@siderakis
3 months ago