# Motion

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

Source: https://tastebase.ehsanulsiam.workers.dev/browse/motion

freepaid

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

by Matt Perry (Motion Division)[GitHub](https://github.com/motiondivision/motion)[npm](https://npmjs.com/package/motion)

[visit](https://motion.dev/?utm_source=tastebase&utm_medium=referral&utm_content=detail-page)

[https://motion.dev](https://motion.dev/?utm_source=tastebase&utm_medium=referral&utm_content=detail-preview)

## Try these

no preview

### [GSAP](https://tastebase.ehsanulsiam.workers.dev/browse/gsap)

Timeline animation engine with ScrollTrigger, SplitText, Flip and MorphSVG, now free including every plugin.

no preview

### [React Spring](https://tastebase.ehsanulsiam.workers.dev/browse/react-spring)

Spring-physics animation hooks for React, React Native and react-three-fiber.

no preview

### [Anime.js](https://tastebase.ehsanulsiam.workers.dev/browse/animejs)

Lightweight, modular JavaScript animation engine (v4) with timelines, stagger, SVG and draggable.

no preview

### [AutoAnimate](https://tastebase.ehsanulsiam.workers.dev/browse/auto-animate)

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 pick](https://tastebase.ehsanulsiam.workers.dev/looks/minimal)[Apple-likefirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/apple)[Glassfirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/glass)[Playfulfirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/playful)[Editorialfirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/editorial)[Neon / cyberfirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/neon)[Technical / dev-toolfirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/technical)[Organic / softfirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/organic)[Liquid Glassfirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/liquid-glass)[Glassmorphismfirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/glassmorphism)[Spatial (visionOS)first pick](https://tastebase.ehsanulsiam.workers.dev/looks/spatial)[Aurorafirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/aurora)[and 62 more](https://tastebase.ehsanulsiam.workers.dev/looks)

## For your agent

##### Install

`npm i motion`

**Free + paid.** [$399 one-time](https://motion.dev/plus?utm_source=tastebase&utm_medium=referral&utm_content=detail-page): 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

##### Pairs with

[Torph](https://tastebase.ehsanulsiam.workers.dev/browse/torph)[NumberFlow](https://tastebase.ehsanulsiam.workers.dev/browse/number-flow)[Vaul](https://tastebase.ehsanulsiam.workers.dev/browse/vaul)[Radix Primitives](https://tastebase.ehsanulsiam.workers.dev/browse/radix-ui)[Base UI](https://tastebase.ehsanulsiam.workers.dev/browse/base-ui)[Lenis](https://tastebase.ehsanulsiam.workers.dev/browse/lenis)

##### Alternatives

[GSAP](https://tastebase.ehsanulsiam.workers.dev/browse/gsap)[React Spring](https://tastebase.ehsanulsiam.workers.dev/browse/react-spring)[Anime.js](https://tastebase.ehsanulsiam.workers.dev/browse/animejs)[AutoAnimate](https://tastebase.ehsanulsiam.workers.dev/browse/auto-animate)

[Compare Motion with its alternatives](https://tastebase.ehsanulsiam.workers.dev/alternatives/motion-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

[Visit](https://motion.dev/?utm_source=tastebase&utm_medium=referral&utm_content=floating-pill)
