Use this file to discover Exa products, pricing, evaluations, comparisons, use cases, agent interfaces, and technical documentation before exploring further.
JavaScript animation libraries change values over time to move, fade, and transform elements on a page. These libraries let apps show a change, such as a menu opening or an item being added, as motion rather than an instant jump.
Popularity
Motion has the most monthly downloads in this comparison, at 123.2M.
d3-transition animates changes to a selection of DOM elements instead of applying them at once. Calling transition on a selection, then style or attr, interpolates each element from its current state to the target over a duration. Built-in interpolators detect colors, numbers, transforms, and strings with numbers inside them, such as paths and font sizes. attrTween, styleTween, and tween take a custom interpolator. A transition supports most selection methods, and remove deletes the elements when it ends.
Downloads / mo
201.2M
Stars
226
Last release
3.0.2
License
ISC
Limitations
Elements must exist first.Appending elements or binding data happens before the transition starts.
export default function (selector: string, p?: ElemParams): D3Selection {
// overrides default params const params = Object.assign(
{},
{
condition: true,
enter: {},
exit: {},
duration: 0,
parent: select("body") as unknown as D3Selection,
update: {},
},
p,
);
const className = /\.([^#]+)/g.exec(selector),
id = /#([^.]+)/g.exec(selector),
t = transition().duration(params.duration),
tag = /^([^.^#]+)/g.exec(selector)![1];
const elem = params.parent
.selectAll(selector.includes(":") ? selector.split(":")[1] : selector)
.data(params.condition ? [null] : []);
const enter = elem.enter().append(tag).call(attrize, params.enter);
if (id) enter.attr("id", id[1]);
if (className) enter.attr("class", className[1]);
if (params.duration)
elem
.exit()
.transition(t)
.call(attrize as never, params.exit)
.remove();
else elem.exit().call(attrize, params.exit).remove();
const update = enter.merge(elem);
if (params.duration)
update.transition(t).call(attrize as never, params.update);
else update.call(attrize, params.update);
return update as unknown as D3Selection;
}
Motion
Motion animates elements in plain JavaScript, React, and Vue, and was called Framer Motion before it took its current name. In JavaScript, animate takes an element or a selector and the values to animate to. In React, a motion.div component animates whatever its animate prop sets. The engine combines JavaScript with the browser's native animation APIs, and the library includes springs, gestures, layout transitions, scroll-linked effects, and timelines. React imports come from motion/react in place of the old framer-motion package.
Downloads / mo
134.5M
Stars
35.1K
Last release
14.14.0
License
MIT
Strengths
Uses physics-based spring motion.Configure springs with stiffness, damping, and mass.
Links animation to scroll progress.Bind animation progress to the window or a scrollable element.
Limitations
Content resizing delays scroll updates.Content-size changes update scroll progress on the next scroll event by default.
Tween.js is a tweening engine: a Tween changes the numeric properties of a plain object from start values to end values over a duration. to sets the targets and the time, easing picks a curve from Robert Penner's easing equations, and onUpdate runs after each change, where code applies the new values to an element or a canvas. The engine moves only when update runs, so an app calls it from a requestAnimationFrame loop.
Downloads / mo
90.1M
Stars
10.2K
Last release
25.0.0
License
MIT
Limitations
Needs an update loop.Tweens move only when the app calls update, usually from a requestAnimationFrame loop.
lottie-web plays animations designed in Adobe After Effects and exported as JSON with the Bodymovin plugin. lottie.loadAnimation loads a file into a container and renders it as SVG, canvas, or HTML. The returned animation object plays, pauses, changes speed, and jumps to a frame. Each renderer supports a different set of After Effects features, and the project lists them per renderer.
Downloads / mo
39.4M
Stars
32.4K
Last release
5.13.0
License
MIT
Strengths
Controls exported animation playback.Play, pause, change speed, and seek through animation frames.
Offers several browser renderers.Choose SVG, Canvas, or HTML rendering for an animation.
Limitations
Repeaters need cloned animation data.Deep-clone shared animation data before loading repeater animations multiple times.
import lottie from 'lottie-web';
const element = document.getElementById('animation');
lottie.loadAnimation({
container: element, // the dom element that will contain the animation
renderer: 'svg',
loop: true,
autoplay: true,
path: 'data.json' // the path to the animation json
});
public seek(value: number | string): void {
if (!this._lottie) {
return;
}
// Extract frame number from either number or percentage value const matches = /^(\d+)(%?)$/.exec(value.toString());
if (!matches) {
return;
}
// Calculate and set the frame number const frame =
matches[2] === "%"
? (this._lottie.totalFrames * Number(matches[1])) / 100
: Number(matches[1]);
// Set seeker to new frame number this.seeker = frame;
// Send lottie player to the new frame if (this.currentState === PlayerState.Playing) {
this._lottie.goToAndPlay(frame, true);
} else {
this._lottie.goToAndStop(frame, true);
this._lottie.pause();
}
}
GSAP
GSAP animates any property JavaScript can reach, including CSS, SVG, canvas, WebGL values, colors, and strings. It runs in plain pages and inside React and Vue apps. gsap.to animates a target to new values, and a timeline sequences many tweens and controls them as one. Plugins add scroll-driven animation with ScrollTrigger, text splitting, SVG morphing, and motion along a path, and gsap.matchMedia changes animations by screen size. The whole library, plugins included, is free for commercial use and has no dependencies.
Downloads / mo
32.1M
Stars
30.5K
Last release
3.15.1
License
Standard 'no charge' license: https://gsap.com/standard-license.
Strengths
Coordinates complex animation sequences.Combine tweens on a timeline and control their timing together.
Collects animation cleanup in contexts.Revert grouped animations when the associated view is removed.
Limitations
Contexts handle cleanup, not playback.Use timelines to control animation playback instead of a cleanup context.
dotLottie Web renders Lottie animations and .lottie files in browsers and Node.js. A .lottie file bundles one or more Lottie animations and their assets into one compressed archive, with support for interactivity and theming. The DotLottie class loads a file and plays, pauses, and controls it. Rendering runs in a WebAssembly engine that downloads from a CDN when the first player is created, and DotLottie.preload starts that download early.
Downloads / mo
9.2M
Stars
951
Last release
0.83.2
License
MIT
Limitations
Engine loads from a CDN.The WebAssembly engine downloads from a CDN when the first player is created.
private applySlots(slots: Record<string, LottieSlotValue> | undefined): void {
if (!slots) return
for (const [id, value] of Object.entries(slots)) {
try {
// `getSlotType` reports position slots as 'vector'; `setVectorSlot` // handles both. const type = this.dotLottie.getSlotType(id)
if (type === 'scalar' && typeof value === 'number') {
this.dotLottie.setScalarSlot(id, value)
} else if (type === 'vector' && Array.isArray(value)) {
this.dotLottie.setVectorSlot(id, value)
}
} catch {
// ignore a single bad slot — the rest still apply }
}
}
AutoAnimate
AutoAnimate adds transitions when a child of a parent element is added, removed, or moved, with no animation code. Passing the parent to autoAnimate turns it on. React and Preact use the useAutoAnimate hook, and Vue uses the v-auto-animate directive. Options set the duration and easing of the transitions.
Anime.js animates CSS properties, SVG, DOM attributes, and plain JavaScript objects. The current version imports functions as ES modules, so animate and stagger come in separately. animate takes targets and an object of properties, duration, delay, and easing. stagger spreads delays across many targets, for example outward from the center. Timers, timelines, and animations can also follow scroll position through scroll observers.
Downloads / mo
4.5M
Stars
74.9K
Last release
4.5.0
License
MIT
Strengths
Triggers animations from scroll.Connect timers, animations, and timelines to scroll observers.
Calculates spring easing curves.Use spring parameters to create a physics-based easing curve.
Limitations
Spring settling overrides animation duration.The spring settling duration replaces the animation duration parameter.
To sequence many animations and drive them from scroll, use GSAP. In React, use Motion, which animates components through props and handles layout changes. To animate a list as items come and go, use AutoAnimate, and to play designer files from After Effects, use lottie-web.
Motion is built for React and exposes motion components that animate through props. GSAP also animates React apps, and AutoAnimate ships a useAutoAnimate hook for React.
Framer Motion is now called Motion. Motion animates React components through props such as animate, with layout transitions built in. GSAP runs in any framework through gsap.to and timelines, and its plugins add scroll-driven animation, text splitting, and SVG morphing.
ScrollTrigger is a GSAP plugin that ties animations to scroll position. Like every GSAP plugin, it is free, including for commercial use.
lottie-web plays Lottie animations exported from After Effects as JSON and renders them as SVG, canvas, or HTML. dotLottie Web plays the same animations plus .lottie files, which bundle animations and assets into one compressed archive, and renders through a WebAssembly engine.
Motion and Anime.js animate DOM elements and JavaScript objects with springs, timelines, and scroll effects. Tween.js tweens the values of plain objects inside an update loop the app runs.
For coding agents
Found your animation library? Help your agent use it.
Connect Exa so your coding agent can find the library’s documentation, check its API, and look up implementations while you build.