Best React animation libraries in 2026
Motion, GSAP, React Spring, AutoAnimate and View Transitions compared on size, license and feel, plus which React animation library to pick.
The short answer
The best React animation library for most product interfaces in 2026 is Motion (formerly Framer Motion): declarative, MIT licensed, and good at the things UI needs, which are springs, gestures, exit animations and layout changes. Use GSAP when the job is a scroll-driven story or a long timeline, AutoAnimate when a list just needs to stop jumping, and the browser's View Transitions, now stable in React 19.3, for page and state transitions with no library at all.
React Spring is still a sound physics library, and Lottie and Rive are for playing back motion a designer made. If you would rather not write animation code, animated component libraries such as Magic UI, Aceternity UI, React Bits and Arc give you finished pieces.
At a glance
Five questions separate these tools more than any feature list. Can you write it as JSX, does it do real springs, can it animate layout changes and elements leaving, does it handle scroll timelines, and is it open source?
| Library | Declarative JSX | Springs | Layout and exit | Scroll timelines | Open source |
|---|---|---|---|---|---|
| Motion | Yes | Yes | Yes | Partly, Linked, no pin | Yes, MIT |
| GSAP | Partly, Refs in a hook | Partly, Eases only | Partly, Flip plugin | Yes, ScrollTrigger | No, Free, own license |
| React Spring | Yes | Yes | Partly, useTransition | Partly, useScroll | Yes, MIT |
| AutoAnimate | Yes, One hook | No | Partly, Lists only | No | Yes, MIT |
| View Transitions | Yes, React 19.3 | No, CSS easing | Yes | No | Built in |
Motion and React Spring look alike on paper. In practice Motion's layout animations, gestures and exit handling are the reason most React teams pick it, and its springs take a duration and a bounce instead of tension and friction, which is easier to design with.
The libraries
Motion, formerly Framer Motion
- Version
- 15.0.1
- License
- MIT
- Import
- motion/react
- Best for
- Product UI
Motion is what Framer Motion became when it left Framer. The package is motion, you import from motion/react, and the old framer-motion package still ships at the same version. You describe the end state on a motion element and it animates there, with springs by default, interruptible mid-flight. AnimatePresence animates elements as they unmount, layout and layoutId animate size and position changes, including a highlight sliding between tabs.
import { motion } from "motion/react"; const snappy = { type: "spring", visualDuration: 0.2, bounce: 0 } as const; export function Tabs({ tabs, active, onChange }: TabsProps) { return <div role="tablist"> {tabs.map(tab => ( <button key={tab} role="tab" aria-selected={tab === active} onClick={() => onChange(tab)}> {tab === active && <motion.span layoutId="pill" transition={snappy} />} {tab} </button> ))} </div>;}Version 15, the current major, loads layout and drag code on demand and marks exiting elements inert. For accessibility, MotionConfig reducedMotion="user" turns transform animations off for people who ask for less motion.
GSAP
- Version
- 3.15.1, v4 in beta
- License
- Free, no-charge license
- Import
- gsap, @gsap/react
- Best for
- Scroll and timelines
GSAP is a timeline engine. You select elements and script what happens, in order, with exact control over overlap and timing. Since Webflow bought GreenSock, every plugin is free, including the ones that used to be paid: SplitText, MorphSVG, ScrollSmoother. ScrollTrigger is still the best tool on the web for pinned, scrubbed scroll sequences.
import { useRef } from "react";import gsap from "gsap";import { ScrollTrigger } from "gsap/ScrollTrigger";import { useGSAP } from "@gsap/react"; gsap.registerPlugin(ScrollTrigger, useGSAP); export function Story() { const root = useRef<HTMLElement>(null); useGSAP(() => { gsap.timeline({ scrollTrigger: { trigger: root.current, end: "+=1200", scrub: true, pin: true }, }) .from(".headline", { y: 40, opacity: 0 }) .to(".product", { scale: 1.1, rotate: -4 }); }, { scope: root }); return <section ref={root}>{/* … */}</section>;}The cost in React is style: you work with refs and selectors inside useGSAP, which cleans up for you, rather than with props. Free is not open source either: the license bars use in no-code animation builders that compete with Webflow.
React Spring
- Version
- 10.1.2, v11 in beta
- License
- MIT
- Import
- @react-spring/web
- Best for
- Physics, 3D
React Spring animates values with spring physics and renders them through animated elements without re-rendering your component. It pairs with @use-gesture for drag and with react-three-fiber for 3D scenes. Version 10 added React 19 support; releases are steadier than Motion's, and the latest stable is from June 2026.
import { animated, useSpring } from "@react-spring/web"; export function Drawer({ open }: { open: boolean }) { const style = useSpring({ x: open ? 0 : -320, config: { tension: 320, friction: 32 }, }); return <animated.aside style={style}>{/* … */}</animated.aside>;}AutoAnimate
- Version
- 0.11.0
- License
- MIT
- Import
- @formkit/auto-animate
- Best for
- Lists
One hook on a parent, and its children animate when they are added, removed or reordered. No configuration, it respects reduced motion by default, and it is the right answer more often than people admit.
import { useAutoAnimate } from "@formkit/auto-animate/react"; export function Todos({ items }: { items: Todo[] }) { const [parent] = useAutoAnimate(); return <ul ref={parent}> {items.map(item => <li key={item.id}>{item.title}</li>)} </ul>;}View Transitions and CSS
- Version
- React 19.3
- Browsers
- Baseline since Oct 2025
- Import
- react
- Best for
- Page transitions
Same-document view transitions work in Chrome, Edge, Safari 18 and Firefox 144. React's <ViewTransition> became stable in React 19.3 in September: wrap an element, update state inside a transition, and the browser morphs between the old and new snapshots. Browsers without support simply skip the animation.
import { startTransition, ViewTransition } from "react"; // Wrap the element; React animates it when the update runs in a transition.<ViewTransition name={`photo-${photo.id}`}> <img src={photo.src} alt={photo.alt} /></ViewTransition> startTransition(() => setSelected(photo.id));Easing is CSS, so there are no real springs and no interruption mid-flight. Plain CSS transitions remain the right tool for hover and focus.
Lottie and Rive
Both play back animation a designer built in another tool. Lottie plays After Effects exports, and the dotLottie player is far lighter than the classic lottie-web runtime. Rive adds state machines, so an animation can react to input. Use them for illustration and character work, not for interface state.
Head to head
Motion vs GSAP in React
The split is declarative against imperative. With Motion, state drives the animation: a prop changes and the element springs to its new value, which is how React already thinks. With GSAP, you write the sequence: this element, then that one, overlapping by 0.2 seconds, scrubbed to the scroll position. Motion wins on component work, interruption and exit animations. GSAP wins as soon as there is a timeline longer than a few steps, pinning, or text and SVG effects. They coexist without trouble, and plenty of teams ship Motion in the app and GSAP on the marketing pages.
React Spring vs Framer Motion
Both are spring-first and declarative. React Spring gives you lower-level hooks and renders outside React's cycle, which suits physics-heavy and 3D work. Motion gives you more out of the box, including gestures, layout animations and AnimatePresence, and has the larger community by a wide margin. If you are starting fresh on a product UI, Motion is the safer default. If you are already in the Poimandres ecosystem with react-three-fiber, React Spring fits it naturally.
Do you still need a library?
Less often than in 2023. View transitions cover page changes, CSS covers hover and focus, and AutoAnimate covers lists. A library earns its place when motion has to respond to the user while it runs: dragging, interrupting, reversing.
Bundle size
Every number is from the same build, so they compare fairly. They are bigger than some figures quoted elsewhere, because they include everything one import pulls in.
The spread matters less than it looks. Motion's full component is heavy, but m with LazyMotion starts at a few kilobytes and loads features when needed. GSAP only grows by the plugins you register. Rive and lottie-web are the ones to load lazily, below the fold.
What springs feel like
The reason to use springs is how interfaces respond when you change your mind. A spring keeps its velocity when interrupted, so a thumb reversing mid-throw or a highlight changing target never jumps. Try clicking quickly between options on these Arc components, all built on Motion with two shared springs: snappy settles in 0.2s for presses and toggles, smooth in 0.3s for panels, both without bounce.
Small amplitudes and no overshoot make motion read as quality rather than decoration. Arc's motion docs list the tokens and the reduced motion rules.
Animated component libraries
Often you do not need an animation library so much as an animated component. These four give you source to copy into your project; three are built on Motion.




Magic UI, Aceternity UI and React Bits lean toward landing pages: marquees, text effects, backgrounds. Arc is built for product interfaces such as the segmented control and text morph above, with one set of motion tokens across every item.
Which to pick
Start from the job. Most apps end up with Motion plus one of the others, and that is fine.
Whatever you pick, honour prefers-reduced-motion: every tool here has a way to, and it is the difference between motion that helps and motion that gets in the way.
Questions
What is the best animation library for React?
For most product interfaces it is Motion, formerly Framer Motion: it is declarative, MIT licensed and handles springs, gestures, exit animations and layout changes in one API. GSAP is the better tool for scroll-driven storytelling and long timelines. For a list that should animate when items are added or removed, AutoAnimate does it in one line, and for page transitions the browser's View Transitions API is now built into React 19.3.
Is Framer Motion still free, and is it the same as Motion?
Yes on both. Framer Motion was renamed Motion when it became an independent project. The package is now called motion and you import from motion/react. It is MIT licensed. The old framer-motion package is still published at the same version for existing projects.
Is GSAP better than Framer Motion?
Neither is better in general. GSAP is an imperative timeline engine and leads on scroll-linked sequences, pinning, SVG morphing and text splitting. Motion is declarative and leads on state-driven UI: hover and press feedback, shared layout animations and exit animations. Many teams use Motion in the app and GSAP on the marketing site.
Is GSAP free for commercial use?
Yes. Since Webflow acquired GreenSock, GSAP and all of its former Club plugins, such as SplitText, MorphSVG and ScrollSmoother, are free for commercial use under GSAP's standard no-charge license. It is not an open source license: it forbids using GSAP in no-code visual animation tools that compete with Webflow without permission.
Can I animate React without a library?
Often, yes. CSS transitions handle hover, focus and simple state changes, and React 19.3's ViewTransition component animates elements entering, leaving and moving between states with no extra bundle. Reach for a library when you need springs that respond to interruption, gestures, exit animations on unmount or scroll timelines.