Framer Motion
Simple and powerful animation library for React components.
2. Maintained
github.com/motiondivision/motion3. Used by agents' projects
Dependency in 495 public GitHub projects set up for AI coding agents that we scanned (7.9%).
4. Agent access
Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.
motion.dev/llms.txtFrom the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error
What Framer Motion does
Framer Motion is now called Motion: the <code>framer-motion</code> package still ships releases, but the README says to import from <code>motion/react</code>, and the project adds tooling built for coding agents (a free MCP server, an agent skill and Markdown docs).
Framer Motion popularity
Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated
How Framer Motion is used
- Framer Motion is a dependency in 495 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (10.2% of the 4,867 JavaScript/TypeScript ones), #2 of 46 in animation and motion.
- Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 2,826; those are left out of every share on this page.
- The most used alternative in our scan is Motion (218 projects).
- Projects that use it most often also use Lucide React (84.2%), clsx (77.6%), Tailwind Merge (75.6%).
- It is more common in projects set up for Roo Code (17.1%) than for OpenCode (4.7%).
By coding agent
Often used with
Framer Motion in practice
Strengths
You can set values made with <code>useMotionValue</code> many times per frame. The docs say each change updates the DOM without a React re-render, and renders are batched to the next animation frame.
<code>useTransform</code> derives one motion value from another, and <code>useSpring</code> attaches a spring to a value. The docs' example fades an element's opacity as it is dragged.
The performance guide says Motion uses WAAPI, so it can run some animations off the main JavaScript thread. The guide says a hardware-accelerated animation stays smooth however busy the main thread gets.
The site says a single <code>layout</code> prop animates an element between any two layouts.
Watch out for
The package used to be called <code>framer-motion</code>. The README tells you to install <code>motion</code> and import from <code>motion/react</code> instead.
When you animate <code>x</code> or <code>scale</code> on their own, Motion animates CSS variables under the hood. The docs say these do not get hardware acceleration. Use a full <code>transform</code> string when acceleration matters.
The FAQ says animations of CSS variables finish at once in browsers that lack the CSS Properties and Values API. It also says Motion does not support Internet Explorer 11 or below.
Animate a div in React
import { motion } from "motion/react"
function Component() {
return <motion.div animate={{ x: 100 }} />
}More about Framer Motion
Funding
- Own page: https://motion.dev/plus
Agent Skills for it
- framer-motion: Use when implementing Disney's 12 animation principles with Framer Motion in React applications
Head to head
- Framer Motion vs Motion used together in 63 projects
- Framer Motion vs GSAP used together in 45 projects
Packages around it
- react: UI library
- tailwindcss: Utility-first CSS
- lucide-react: Icon set
- clsx: Conditional class names
- tailwind-merge: Tailwind class merging
- @react-three: React renderer for three.js
Alternatives
Framer Motion This page
Animation library for JavaScript and React with simple, powerful motion primitives.
Professional animation library for high-performance CSS, SVG, canvas and React animations.
Physics-based animation library for React and React Three Fiber with smooth transitions.
Lightweight JavaScript animation engine for creating smooth animations.
Get started
Install it.
npm install framer-motionRules for your agent
## Motion (Framer Motion)
- Install `motion` and import from `motion/react` in new code, not from `framer-motion`.
- For values that change often (drag, scroll, pointer), use `useMotionValue` and `useTransform` so updates skip React re-renders.
- When you subscribe with a motion value's `on` method inside a component, wrap the call in `useEffect` or use `useMotionValueEvent`.
- Prefer animating `transform` and `opacity`. If hardware acceleration matters, animate a full `transform` string instead of `x`/`scale`.
- Animate `filter: drop-shadow(...)` instead of `boxShadow`, and `clipPath: inset(... round ...)` instead of `borderRadius`.
- Do not import Motion+ components (Motion UI, AnimateNumber) as if they were in the free package. Check the docs entry first.
- Fetch docs as Markdown by adding `.md` to a docs URL, or use the free MCP server at https://mcp.motion.dev.