
Motion
An open source animation library for JavaScript, React and Vue.
- Stars
- 34.8k
- Forks
- 1.5k
- Licence
- MIT
- Language
- TypeScript
- Last update
- 4 days ago
- Type
- Library
What it is
Motion is a code library that lets developers add movement to web pages and apps, such as sliding, fading, springy bounces, and layout changes. It offers packages for React, plain JavaScript and Vue, and its README says it uses browser APIs for smooth, GPU-accelerated animation. It was formerly known as Framer Motion.
- Animate a React component's position with a single animate prop
- Trigger a JavaScript animation on a selected element with the animate function
- Add gesture-driven, spring-based or layout-transition effects to interface elements
- Copy from the 450+ official examples as a starting point
Great for
- React developers who want to animate components with a simple API
- JavaScript developers animating elements on a web page
- Vue developers looking for an animation package
- Teams building interactive websites that need gestures, springs or scroll-linked effects
Not ideal for
- People who want a visual tool with no coding: the README's visual editor, Motion Studio, is a separate product
- Projects that need only a few CSS transitions, where native CSS may be simpler (general judgment, not stated in the README)
How to get it
- 1
Install with a package manager
You'll need: Node.js and npm
React / JavaScript
npm install motionVue
npm install motion-v - 2
Run it
- Install the package for your framework with the command above
- Import the component or function you need, such as motion/react or animate from motion
- Apply an animation, for example animate="{{ x: 100 }}" on a motion.div in React
- Browse the official examples at motion.dev/examples for more patterns
- 3
Get the most out of it
- Use the official examples (450+) as copy-paste starting points
- Connect a coding agent to the Motion MCP server or run npx motion-ai for current docs
- Check llms.txt on motion.dev to give AI tools a full docs index
- Consider Motion Studio if you want to edit keyframes and springs visually
Downloads
Strengths
- The README lists first-class React, JavaScript and Vue packages under one name
- Released under the MIT license and tree-shakable, per the README
- Large official example library with 450+ examples and tutorials
Trade-offs
- Some advanced features, including Motion+ content and the Transition editor, are paid
- The README does not describe bundle size or performance numbers beyond general claims
- Formerly Framer Motion; older projects need their imports updated to motion/react
How it compares
| Project | Stars | Type | Level | Updated | Best for |
|---|---|---|---|---|---|
| motion (this) | 34.8k | Library | intermediate | 4 days ago | React developers who want to animate components with a simple API |
| react-spring | 29.3k | Library | intermediate | 5 days ago | React developers who want fluid, physics-based animations |
| mojs | 18.9k | Library | intermediate | 3 months ago | Front-end developers who want decorative animated effects like bursts, shapes, or icon animations |
| anime | 74.2k | Library | beginner | 3 months ago | Front-end developers adding motion to websites or web apps |
| lax.js | 10.5k | Library | intermediate | 1.5 years ago | Developers adding simple scroll-linked effects to a static site or plain HTML page |
| react-three-fiber | 33.4k | Library | intermediate | 15 days ago | React developers who want to add 3D scenes to a web app |
Stats synced from GitHub. The assessment above was drafted with AI from the project's README on 2026-10-29 and may miss recent changes — check the README before relying on a command. MIT licence: free to use, modify and distribute, including commercially, as long as you keep the copyright notice.