Best animation libraries
Written from the tastebase registry, so it changes when an entry does.
These are the animation libraries we would reach for, in that order. Each one is in tastebase because it does one job well; the table says which job.
Motion leads: the default animation library for React (formerly Framer Motion): springs, gestures, layout and exit animations. If it doesn't fit, GSAP is the next pick: timeline animation engine with ScrollTrigger, SplitText, Flip and MorphSVG, now free including every plugin.
12 picks

Motion
The default animation library for React (formerly Framer Motion): springs, gestures, layout and exit animations.
GSAP
Timeline animation engine with ScrollTrigger, SplitText, Flip and MorphSVG, now free including every plugin.
Anime.js
Lightweight, modular JavaScript animation engine (v4) with timelines, stagger, SVG and draggable.
AutoAnimate
One line of code that animates children being added, removed or moved inside a parent.
React Spring
Spring-physics animation hooks for React, React Native and react-three-fiber.
tw-animate-css
Tailwind v4 CSS-only enter and exit animation utilities (animate-in, fade-in, slide-in-from-top).
React <ViewTransition>
React 19.3's built-in wrapper for the browser View Transitions API: animated route and state changes with no library.
Rive
Runtime for interactive Rive (.riv) animations with state machines, driven from code.
dotLottie React
Player for Lottie (.json) and compressed .lottie animations exported from After Effects or Lottie Creator.
Transitions.dev
Copy-ready CSS transitions for modals, menus, panels, toasts and state swaps, via a CLI or agent skill.
Rare UI
A shadcn registry of unusual Motion components: spring sidebars, a rail table of contents, gooey nav, OTP and password inputs.
Fancy Components
Playful React motion pieces: physics gravity, text rotate, variable-font hover, image trails, as shadcn source.
Compared
Questions
What is the best animation library?
Motion: the default animation library for React (formerly Framer Motion): springs, gestures, layout and exit animations. Reach for it for dialogs, popovers and panels that must animate out before they unmount (AnimatePresence).
Which of these are completely free?
GSAP, Anime.js, AutoAnimate, React Spring, tw-animate-css, React <ViewTransition>, dotLottie React, Rare UI and Fancy Components. The rest are free to start with a paid tier.
Which work outside React?
Motion, GSAP, Anime.js, AutoAnimate, React Spring, tw-animate-css and 3 more also ship for Vue, Svelte, Solid and Angular. The rest are React only.
Which are the lightest?
AutoAnimate, tw-animate-css, React <ViewTransition> and Transitions.dev add the least to your bundle.