Framer Motion

Production-ready animation and gesture library for React
GitHub
26.9k
Created 6 years ago, last commit 10 hours ago
112 contributors
6.06k commits
Stars added on GitHub, month by month
1
2
3
4
5
6
7
8
9
10
11
12
2024
Stars added on GitHub, per day, on average
Yesterday
+40
Last week
+18.6
/day
Last month
+15.5
/day
Last 12 months
+16.1
/day
npmPackage on NPM
Monthly downloads on NPM
1
2
3
4
5
6
7
8
9
10
11
12
2024
README

Motion logo

Motion

An open source motion library for JavaScript and React.


Motion is the only animation library with first-class APIs for both JavaScript and React.

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

🏎️ Quick start

Install motion via your package manager:

npm install motion

JavaScript

import { animate } from "motion"

animate("#box", { x: 100 })

Read the full JavaScript docs.

React

import { motion } from "motion/react"

function Component() {
    return <motion.div animate={{ x: 100 }} />
}

Read the full React docs.

💎 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

Syntax.fm Tailwind Emil Kowalski Linear

Gold

Vercel Liveblocks Luma

Silver

Frontend.fyi Statamic Firecrawl Puzzmo Build UI Hover

Personal