motion
TypeScript icon, indicating that this package has built-in type declarations

12.11.4 β€’ Public β€’ Published

Motion logo

Motion





Motion is an open source, production-ready library that’s designed for all creative developers.

It's the only animation library with a hybrid engine, combining the power of JavaScript animations with the performance of native browser APIs.

It looks like this:

<motion.div animate={{ x: 0 }} />

It does all this:

...and a whole lot more.

Get started

πŸ‡ Quick start

Install motion via your package manager:

npm install motion

JavaScript

Import the animate function:

import { animate } from "motion"

animate("div", { scale: 1.2 })

Get started

React

Import the motion component:

import { motion } from "motion/react"

export function Component({ isVisible }) {
    return <motion.div animate={{ opacity: isVisible ? 1 : 0 }} />
}

Get started

πŸ’Ž Contribute

πŸ‘©πŸ»β€βš–οΈ License

  • Motion is MIT licensed.

✨ Sponsors

Motion is sustainable thanks to the kind support of its sponsors.

Partners

Framer

Motion powers Framer animations, the web builder for creative pros. Design and ship your dream site. Zero code, maximum speed.

Framer

Platinum

Tailwind Emil Kowalski Linear

Gold

Vercel Liveblocks Luma

Silver

Frontend.fyi Firecrawl Puzzmo Build UI

Personal

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i motion

    Weekly Downloads

    1,214,878

    Version

    12.11.4

    License

    MIT

    Unpacked Size

    1.76 MB

    Total Files

    408

    Last publish

    Collaborators

    • popmotion
    • motionone