Motion
freepaidThe default animation library for React (formerly Framer Motion): springs, gestures, layout and exit animations.

Try these
GSAP
Timeline animation engine with ScrollTrigger, SplitText, Flip and MorphSVG, now free including every plugin.
React Spring
Spring-physics animation hooks for React, React Native and react-three-fiber.
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.
Try it
Drag and let go
Looks that pick it
Minimalfirst pickApple-likefirst pickGlassfirst pickPlayfulfirst pickEditorialfirst pickNeon / cyberfirst pickTechnical / dev-toolfirst pickOrganic / softfirst pickLiquid Glassfirst pickGlassmorphismfirst pickSpatial (visionOS)first pickAurorafirst pickand 62 more
For your agent
Install
npm i motionFree + paid. $399 one-time: Motion+: 11 premium components, sections and examples; motion stays free
Use it for
- dialogs, popovers and panels that must animate out before they unmount (AnimatePresence)
- list or grid items that reflow when one is added, removed or reordered (layout prop)
- a tab or nav indicator that slides between items (shared layoutId)
- drag, swipe-to-dismiss and press feedback that must stay interruptible mid-animation
- a scroll progress bar and parallax tied to scroll position (useScroll + useTransform)
- a card or section that fades or animates in once as it scrolls into view (scroll-triggered, whileInView)
Skip it when
- a hover colour change or a one-shot fade: a CSS transition costs zero bytes
- long choreographed timelines, SVG morphing or pinned scroll stories: use gsap
- plain list add/remove where you only want it to not jump: use auto-animate (2 KB)
- a text label that changes: use torph; a number that changes: use number-flow
- the motion carries no meaning (decorative loops, entrance animation on every section): do not animate
What's inside17 free, 8 paid
- motion components
- AnimatePresence
- Layout animations
- Reorder
- Gestures
- Drag
- Scroll animations
- SVG animation
- Motion values
- MotionConfig
- LazyMotion
- useAnimate
- useScroll
- useSpring
- useTransform
- useInView
- animate()
- AnimateNumberpaid
- Carouselpaid
- Cursorpaid
- Gallerypaid
- Tickerpaid
- Typewriterpaid
- ScrambleTextpaid
- splitTextpaid
Facts
- Frameworks
- react, vue, svelte, solid, angular, vanilla
- Styling
- unstyled
- Weight
- medium
- Accessibility
- ok
- Maturity
- established
- License
- MIT
- Price
- Free core, $399 one-time for more
Alternatives
import { motion, AnimatePresence } from 'motion/react'
<AnimatePresence>
{open && (
<motion.div
key="panel"
initial={{ opacity: 0, y: 8 }}
animate={{ opacity: 1, y: 0 }}
exit={{ opacity: 0, y: 8 }}
transition={{ type: 'spring', bounce: 0, duration: 0.3 }}
/>
)}
</AnimatePresence>https://motion.dev/examples
Loading website