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

12.9.2 • Public • Published

Motion logo

Motion for React





Motion for React 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

Then import the motion component:

import { motion } from "motion/react"

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

💎 Contribute

👩🏻‍⚖️ License

  • Motion for React 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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
12.9.217,566latest
12.7.5-alpha.269canary
10.5.0-alpha.13alpha
10.0.0-rc.62rc

Version History

VersionDownloads (Last 7 Days)Published
12.9.217,566
12.9.122,920
12.9.04,473
12.8.24,988
12.8.024,197
12.7.55,622
12.7.5-alpha.269
12.7.5-alpha.170
12.7.5-alpha.064
12.7.4108,984
12.7.326,382
12.7.26,183
12.7.1485
12.7.0495
12.6.512,922
12.6.431
12.6.4-alpha.04
12.6.376,291
12.6.3-alpha.017
12.6.243,395
12.6.1737
12.6.07,664
12.5.069,254
12.4.132,884
12.4.12161
12.4.114,082
12.4.1020,010
12.4.915,729
12.4.722,878
12.4.674
12.4.51,987
12.4.42,822
12.4.4-alpha.03
12.4.314,658
12.4.212,943
12.4.17,941
12.4.0705
12.3.12,045
12.3.0973
12.2.0141
12.1.02,744
12.0.112,285
12.0.106
12.0.912
12.0.8216
12.0.8-alpha.13
12.0.8-alpha.017
12.0.616,493
12.0.55,791
12.0.428
12.0.33,349
12.0.111,164
12.0.05,174
11.18.285,825
11.18.11,475
11.18.06,254
11.17.1146
11.17.02,228
11.16.7204
11.16.630
11.16.42,673
11.16.3124
11.16.2213
11.16.1867
11.16.01,062
11.15.017,170
11.14.4903
11.14.380
11.14.23
11.14.11,033
11.14.0100
11.13.51,742
11.13.495
11.13.3264
11.13.18,331
11.13.05
11.13.0-beta.03
11.12.02,203
12.0.0-alpha.24,403
11.11.178,372
11.11.1641
11.11.151,546
11.11.14184
11.11.1310
11.11.127
10.18.019,442
10.17.15
10.17.02,354
10.16.4458
10.16.35
10.16.2318,390
10.16.148
10.15.55,517
10.15.3572
10.15.22
10.15.14
10.15.03
10.14.3421
10.14.281
10.14.116
10.14.04
10.13.387
10.13.26
10.13.150
10.13.05
10.12.05
10.11.26
10.11.13
10.11.06
10.10.22
10.10.17
10.10.010
10.9.03
10.8.33
10.8.23
10.8.198
10.8.03
10.8.0-beta.43
10.8.0-beta.23
10.7.23
10.7.166
10.7.03
10.6.214
10.6.111
10.6.024
10.6.0-rc.63
10.6.0-rc.54
10.6.0-rc.44
10.6.0-rc.32
10.6.0-rc.13
10.5.217
10.5.12
10.5.038
10.5.0-beta.12
10.5.0-beta.02
10.5.0-alpha.55
10.5.0-alpha.44
10.5.0-alpha.34
10.5.0-alpha.23
10.5.0-alpha.13
10.4.055
10.3.24
10.3.15
10.3.06
10.2.17
10.2.04
10.1.49
10.1.33
10.1.24
10.1.118
10.1.02,078
10.0.32
10.0.24
10.0.121
10.0.013
10.0.0-rc.62
10.0.0-rc.52
10.0.0-rc.45
10.0.0-rc.32
10.0.0-rc.29
10.0.0-rc.13
10.0.0-rc.02
6.0.1-alpha.353
6.0.1-alpha.343
6.0.1-alpha.332
6.0.1-alpha.324
6.0.1-alpha.313
6.0.1-alpha.304
6.0.1-alpha.294
6.0.1-alpha.283
6.0.1-alpha.274
6.0.1-alpha.263
6.0.1-alpha.253
6.0.1-alpha.242
6.0.1-alpha.234
6.0.1-alpha.213
6.0.1-alpha.206
6.0.1-alpha.192
6.0.1-alpha.184
6.0.1-alpha.172
6.0.1-alpha.163
6.0.1-alpha.155
6.0.1-alpha.142
6.0.1-alpha.132
6.0.1-alpha.123
6.0.1-alpha.113
6.0.1-alpha.105
6.0.1-alpha.92
6.0.1-alpha.82
6.0.1-alpha.73
6.0.1-alpha.63
6.0.1-alpha.52
6.0.1-alpha.43
6.0.1-alpha.330
6.0.1-alpha.22
6.0.1-alpha.12
6.0.09
5.0.0-beta264
5.0.0-beta252
5.0.0-beta243
5.0.0-beta232
5.0.0-beta225
5.0.0-beta214
5.0.0-beta20-34
5.0.0-beta18-22
5.0.0-beta183
5.0.0-beta175
5.0.0-beta163
5.0.0-beta152
5.0.0-beta143
5.0.0-beta132
5.0.0-beta112
5.0.0-beta103
5.0.0-beta93
5.0.0-beta72
5.0.0-beta62
5.0.0-beta42
5.0.0-beta32
5.0.0-beta23
5.0.0-beta14
5.0.0-alpha13

Package Sidebar

Install

npm i motion

Weekly Downloads

1,096,709

Version

12.9.2

License

MIT

Unpacked Size

1.75 MB

Total Files

407

Last publish

Collaborators

  • popmotion
  • motionone