Motion
Animation library for JavaScript and React with simple, powerful motion primitives.
Animation and motion npm MIT
Used in agent projects
416
3.3% of 12,697 public repos built with AI coding agents
Rank in animation and motion
#6 of 28
by use in those projects
Downloads
24.4M
npm, last 7 days, motion
GitHub stars
33.9K
last push Oct 9, 2026
How Motion is used
Motion is a dependency in 416 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (3.3%), #6 of 28 in animation and motion. The most used alternative there is Framer Motion. Projects that use it most often also use Lucide React (79.8%), Tailwind Merge (74.0%), clsx (73.8%). It is more common in projects set up for Kiro (6.8%) than for GitHub Copilot (3.3%).
Often used with Motion
| Lucide React | 79.8% of Motion projects · 4.0× more than average |
|---|---|
| Tailwind Merge | 74.0% of Motion projects · 4.4× more than average |
| clsx | 73.8% of Motion projects · 4.2× more than average |
| Tailwind CSS | 92.3% of Motion projects · 2.7× more than average |
| Class Variance Authority | 62.3% of Motion projects · 4.4× more than average |
| React | 97.4% of Motion projects · 2.2× more than average |
| Radix UI | 47.8% of Motion projects · 4.0× more than average |
| Next.js | 65.1% of Motion projects · 2.9× more than average |
By coding agent
| Claude Code | 4.3% of projects set up for it |
|---|---|
| Cursor | 4.6% of projects set up for it |
| GitHub Copilot | 3.3% of projects set up for it |
| Gemini CLI | 6.6% of projects set up for it |
| OpenAI Codex | 4.7% of projects set up for it |
| OpenCode | 5.6% of projects set up for it |
| Devin Desktop | 6.6% of projects set up for it |
| Kiro | 6.8% of projects set up for it |
Share of public repos configured for each agent that list Motion as a dependency.
Install
| Package | npm install motion |
|---|---|
| Main stacks | Next.js (266), TypeScript / JavaScript (138), Python (5), PHP (4) |
| Example projects | miantiao-me/bm.md, inboundemail/inbound, 1600822305/AetherLink, narnia-sh/layrr, 5pyj29s7cm-tech/LumiCore |
Alternatives to Motion
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| Framer Motion npm Simple and powerful animation library for React components. |
1,703 (13.4%) | 50.1M | 33.9K | MIT |
| Tailwind CSS Animate npm Tailwind CSS plugin adding ready-to-use animation utilities. |
945 (7.4%) | 20.4M | — | MIT |
| tw-animate-css npm Tailwind CSS v4.0 compatible animation plugin replacement. |
851 (6.7%) | 39.6M | 806 | MIT |
| Embla Carousel npm Lightweight carousel component with fluid motion and precise swipe handling for React. |
605 (4.8%) | 30.4M | 8,439 | MIT |
| GSAP npm Professional animation library for high-performance CSS, SVG, canvas and React animations. |
599 (4.7%) | 5.9M | 29K | Standard 'no charge' license: https://gsap.com/standard-license. |
| Lenis npm Smooth scrolling library that enhances page scroll experiences with physics-based animations. |
193 (1.5%) | 1.8M | 16.3K | MIT |
| React Native Reanimated npm High-performance animation library for React Native with worklet support. |
129 (1.0%) | 9.3M | 11K | MIT |
| canvas-confetti npm Performant confetti animation library for creating celebratory effects in browsers. |
103 (0.8%) | 8.5M | 12.8K | ISC |