motion 12.23.11 → 13.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +68 -38
- package/dist/cjs/react-client.js +5 -659
- package/dist/es/react-client.mjs +1 -2
- package/dist/es/react-m.mjs +0 -1
- package/dist/es/react-mini.mjs +0 -1
- package/dist/es/react.mjs +0 -1
- package/dist/motion.dev.js +5 -2
- package/dist/motion.js +1 -1
- package/dist/react-client.d.ts +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,34 +1,46 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
</p>
|
|
4
|
-
<h1 align="center">Motion</h1>
|
|
1
|
+
|
|
2
|
+
<h1 align="center"> <img width="35" height="35" alt="Motion logo" src="https://github.com/user-attachments/assets/00d6d1c3-72c4-4c2f-a664-69da13182ffc" /><br />Motion</h1>
|
|
5
3
|
<h3 align="center">
|
|
6
|
-
An open source animation library for JavaScript, React and Vue
|
|
4
|
+
An open source animation library<br />for JavaScript, React and Vue
|
|
7
5
|
</h3>
|
|
8
6
|
|
|
9
|
-
<
|
|
7
|
+
<p align="center">
|
|
8
|
+
<a href="https://www.npmjs.com/package/motion" rel="noopener noreferrer nofollow" ><img src="https://img.shields.io/npm/v/motion?color=0368FF&label=version" alt="npm version"></a>
|
|
9
|
+
<a href="https://www.npmjs.com/package/motion" rel="noopener noreferrer nofollow" ><img src="https://img.shields.io/npm/dm/framer-motion?color=8D30FF&label=npm" alt="npm downloads per month"></a>
|
|
10
|
+
<a target="_blank" rel="noopener noreferrer nofollow" href="https://www.jsdelivr.com/package/npm/motion"><img alt="jsDelivr hits (npm)" src="https://img.shields.io/jsdelivr/npm/hm/framer-motion?logo=jsdeliver&color=FF4FBA"></a>
|
|
11
|
+
<img alt="NPM License" src="https://img.shields.io/npm/l/motion?color=FF2B6E">
|
|
12
|
+
</p>
|
|
10
13
|
|
|
11
|
-
Motion is an animation library and suite of developer tools for making beautiful animations.
|
|
12
14
|
|
|
13
|
-
|
|
15
|
+
```bash
|
|
16
|
+
npm install motion
|
|
17
|
+
```
|
|
14
18
|
|
|
15
|
-
##
|
|
19
|
+
## Table of Contents
|
|
16
20
|
|
|
17
|
-
|
|
21
|
+
1. [Why Motion?](#why-motion)
|
|
22
|
+
2. [🍦 Flavours](#-flavours)
|
|
23
|
+
3. [🎓 Examples](#-examples)
|
|
24
|
+
4. [🎨 Studio](#-studio)
|
|
25
|
+
5. [⚡️ Motion+](#-motion)
|
|
26
|
+
6. [👩🏻⚖️ License](#-license)
|
|
27
|
+
7. [💎 Contribute](#-contribute)
|
|
28
|
+
8. [✨ Sponsors](#-sponsors)
|
|
18
29
|
|
|
19
|
-
|
|
20
|
-
import { animate } from "motion"
|
|
30
|
+
## Why Motion?
|
|
21
31
|
|
|
22
|
-
|
|
23
|
-
```
|
|
32
|
+
Motion is an animation library for making beautiful animations.
|
|
24
33
|
|
|
25
|
-
|
|
34
|
+
* The **only** library with first‑class APIs for React, JavaScript, **and** Vue.
|
|
35
|
+
* Powered by a **hybrid engine** that blends JavaScript flexibility with native browser APIs for **120fps GPU‑accelerated** motion.
|
|
36
|
+
* Tiny footprint, tree‑shakable, and fully TypeScript‑typed.
|
|
26
37
|
|
|
27
|
-
|
|
38
|
+
## 🍦 Flavours
|
|
28
39
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
40
|
+
Motion is available for [React](https://motion.dev/docs/react), [JavaScript](https://motion.dev/docs/quick-start) and [Vue](https://motion.dev/docs/vue).
|
|
41
|
+
|
|
42
|
+
<details>
|
|
43
|
+
<summary>React ⬇</summary>
|
|
32
44
|
|
|
33
45
|
```jsx
|
|
34
46
|
import { motion } from "motion/react"
|
|
@@ -38,9 +50,25 @@ function Component() {
|
|
|
38
50
|
}
|
|
39
51
|
```
|
|
40
52
|
|
|
41
|
-
Get started with [Motion for React](https://motion.dev/docs/react
|
|
53
|
+
Get started with [Motion for React](https://motion.dev/docs/react).
|
|
54
|
+
|
|
55
|
+
</details>
|
|
56
|
+
|
|
57
|
+
<details>
|
|
58
|
+
<summary>JavaScript ⬇</summary>
|
|
59
|
+
|
|
60
|
+
```javascript
|
|
61
|
+
import { animate } from "motion"
|
|
62
|
+
|
|
63
|
+
animate("#box", { x: 100 })
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Get started with [JavaScript](https://motion.dev/docs/quick-start).
|
|
67
|
+
|
|
68
|
+
</details>
|
|
42
69
|
|
|
43
|
-
|
|
70
|
+
<details>
|
|
71
|
+
<summary>Vue ⬇</summary>
|
|
44
72
|
|
|
45
73
|
```html
|
|
46
74
|
<script>
|
|
@@ -52,6 +80,23 @@ Get started with [Motion for React](https://motion.dev/docs/react-quick-start).
|
|
|
52
80
|
|
|
53
81
|
Get started with [Motion for Vue](https://motion.dev/docs/vue).
|
|
54
82
|
|
|
83
|
+
</details>
|
|
84
|
+
|
|
85
|
+
## 🎓 Examples
|
|
86
|
+
|
|
87
|
+
[Motion Examples](https://motion.dev/examples) offers 100s of free and Motion+ examples for beginners and advanced users alike. Easy copy/paste code to kick‑start your next project.
|
|
88
|
+
|
|
89
|
+
## ⚡️ Motion+
|
|
90
|
+
|
|
91
|
+
Learn, Design, Build. [Motion+](https://motion.dev/plus) is a one-time fee, lifetime update membership that provides:
|
|
92
|
+
- 160+ premium Motion Examples
|
|
93
|
+
- Motion UI features like Cursor and Ticker
|
|
94
|
+
- Motion Studio animation editing for VS Code `alpha`
|
|
95
|
+
- Early access content
|
|
96
|
+
- Private Discord
|
|
97
|
+
|
|
98
|
+
[Get Motion+](https://motion.dev/plus)
|
|
99
|
+
|
|
55
100
|
## 🎨 Studio
|
|
56
101
|
|
|
57
102
|

|
|
@@ -64,21 +109,6 @@ Motion Studio is a versatile suite of developer tools allowing you to:
|
|
|
64
109
|
|
|
65
110
|
Get started with [Motion Studio](https://motion.dev/docs/tools-quick-start).
|
|
66
111
|
|
|
67
|
-
## 🎓 Examples
|
|
68
|
-
|
|
69
|
-
[Motion Examples](https://examples.motion.dev) offers 100s of free and Motion+ examples for beginners and advanced users alike. Easy copy/paste code to kickstart your next project.
|
|
70
|
-
|
|
71
|
-
## ⚡️ Motion+
|
|
72
|
-
|
|
73
|
-
[Motion+](https://motion.dev/plus) is a one-time fee, lifetime membership that unlocks over 100 premium examples, early access, powerful Studio tools, a private Discord, and exclusive APIs like:
|
|
74
|
-
|
|
75
|
-
- Cursor
|
|
76
|
-
- Ticker
|
|
77
|
-
- AnimateNumber
|
|
78
|
-
- splitText
|
|
79
|
-
|
|
80
|
-
[Get Motion+](https://motion.dev/plus)
|
|
81
|
-
|
|
82
112
|
## 👩🏻⚖️ License
|
|
83
113
|
|
|
84
114
|
- Motion is MIT licensed.
|
|
@@ -103,11 +133,11 @@ Motion powers Framer animations, the web builder for creative pros. Design and s
|
|
|
103
133
|
|
|
104
134
|
### Platinum
|
|
105
135
|
|
|
106
|
-
<a href="https://tailwindcss.com"><img alt="Tailwind" src="https://github.com/user-attachments/assets/c0496f09-b8ee-4bc4-85ab-83a071bbbdec" width="300px" height="200px"></a> <a href="https://
|
|
136
|
+
<a href="https://tailwindcss.com"><img alt="Tailwind" src="https://github.com/user-attachments/assets/c0496f09-b8ee-4bc4-85ab-83a071bbbdec" width="300px" height="200px"></a> <a href="https://linear.app"><img alt="Linear" src="https://github.com/user-attachments/assets/a93710bb-d8ed-40e3-b0fb-1c5b3e2b16bb" width="300px" height="200px"></a>
|
|
107
137
|
|
|
108
138
|
### Gold
|
|
109
139
|
|
|
110
|
-
<a href="https://vercel.com"><img alt="Vercel" src="https://github.com/user-attachments/assets/23cb1e37-fa67-49ad-8f77-7f4b8eaba325" width="225px" height="150px"></a> <a href="https://liveblocks.io"><img alt="Liveblocks" src="https://github.com/user-attachments/assets/31436a47-951e-4eab-9a68-bdd54ccf9444" width="225px" height="150px"></a> <a href="https://lu.ma"><img alt="Luma" src="https://github.com/user-attachments/assets/4fae0c9d-de0f-4042-9cd6-e07885d028a9" width="225px" height="150px"></a>
|
|
140
|
+
<a href="https://vercel.com"><img alt="Vercel" src="https://github.com/user-attachments/assets/23cb1e37-fa67-49ad-8f77-7f4b8eaba325" width="225px" height="150px"></a> <a href="https://liveblocks.io"><img alt="Liveblocks" src="https://github.com/user-attachments/assets/31436a47-951e-4eab-9a68-bdd54ccf9444" width="225px" height="150px"></a> <a href="https://lu.ma"><img alt="Luma" src="https://github.com/user-attachments/assets/4fae0c9d-de0f-4042-9cd6-e07885d028a9" width="225px" height="150px"></a> <a href="https://emilkowal.ski"><img alt="Emil Kowalski" src="https://github.com/user-attachments/assets/29f56b1a-37fb-4695-a6a6-151f6c24864f" width="300px" height="200px"></a>
|
|
111
141
|
|
|
112
142
|
### Silver
|
|
113
143
|
|