# Framer Motion — card for AI agents

Simple and powerful animation library for React components.

Category: Animation and motion · npm package `framer-motion` · latest version 14.9.0 (checked 2026-11-01)
Install: `npm install framer-motion`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Rules for AI agents (paste into AGENTS.md or CLAUDE.md)

## 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.

## Agent Skills for it
- framer-motion from OpenMontageInc/OpenMontage: `npx skills add OpenMontageInc/OpenMontage --skill framer-motion`

## Docs written for agents
- [llms.txt (index of the docs)](https://motion.dev/llms.txt)

## What it is
- Motion, previously Framer Motion, is an MIT-licensed animation library. The README calls it "an open source animation library for JavaScript, React and Vue". The repository dates from November 2018. In React you render a `motion` component, such as `<motion.div animate={{ x: 100 }} />`, and Motion animates it. A separate `animate()` function covers plain JavaScript, and `motion-v` covers Vue.
- The site lists the main features: independent transforms, scroll-linked animation, hover, press and drag gestures, layout animation through a single `layout` prop, spring physics, exit animations through `AnimatePresence`, and timelines. Under the declarative API sit motion values. These are signal-like values that Motion writes to the DOM with its own renderer.
- It is for React developers who want animation driven by props, and for teams whose coding agents write that code. The free packages sit alongside Motion+, a paid product with premium examples, Motion UI components and an AI Kit.

## Caveats
- The name and import path changed: The package used to be called `framer-motion`. The README tells you to install `motion` and import from `motion/react` instead.
- Shorthand transforms are not accelerated: When you animate `x` or `scale` on their own, Motion animates CSS variables under the hood. The docs say these do not get hardware acceleration. Use a full `transform` string when acceleration matters.
- CSS variable animations can end instantly: 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.
- Some documented features are paid: Motion+ components such as Motion UI and AnimateNumber appear in the docs but are not in the free packages. The `llms.txt` index says how to install and import each one.
- Compatibility shims removed in 14.0.0: The 14.0.0 changelog removed internal APIs that 13.5.1 had restored for compatibility with `framer-motion` 13.0 – 13.4.

## Numbers (AgentGid data)
- Gid Score: 88.0 (#16 of all tools, 1 of 46 in its category)
- Used in 495 public projects set up for AI coding agents (7.9%)
- Downloads last week: 73,955,501 (as of 2026-11-24), +39.8% over 4 weeks
- GitHub stars: 35,508 (as of 2026-11-24)
- Last push: 2026-11-24

## Often used with
Lucide React 84.2%, clsx 77.6%, Tailwind Merge 75.6%, React 97.6%, Class Variance Authority 66.7%, Tailwind CSS 92.5%

## Checked alternatives (same job)
- Motion: https://agentgid.com/tools/motion/agent.md
- GSAP: https://agentgid.com/tools/gsap/agent.md
- React Spring: https://agentgid.com/tools/react-spring-npm/agent.md
- Anime.js: https://agentgid.com/tools/animejs/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/framer-motion/
- Homepage: https://github.com/motiondivision/motion#readme
- Repository: https://github.com/motiondivision/motion
- Source: https://github.com/motiondivision/motion#readme
- Source: https://github.com/motiondivision/motion
- Source: https://www.npmjs.com/package/framer-motion
- Source: https://motion.dev
- Source: https://motion.dev/llms.txt
- Source: https://motion.dev/docs/react-motion-value
- Source: https://motion.dev/docs/performance
- Source: https://motion.dev/docs/faqs

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
