{
 "kind": "tool",
 "slug": "framer-motion",
 "path": "tools/framer-motion/",
 "name": "Framer Motion",
 "maker": null,
 "density": "profile",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Animation and motion",
   "tools/animation/"
  ]
 ],
 "lead": "Simple and powerful animation library for React components.",
 "chips": [
  {
   "label": "Animation and motion",
   "path": "tools/animation/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install framer-motion"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/motiondivision/motion"
  },
  {
   "label": "Website",
   "href": "https://github.com/motiondivision/motion#readme"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/motiondivision/motion"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 24, 2026",
   "note": "",
   "src": "https://github.com/motiondivision/motion"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "495 projects",
   "status": "info",
   "sub": "#2 of 46 in its category",
   "note": "Dependency in 495 public GitHub projects set up for AI coding agents that we scanned (7.9%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Docs for agents",
   "status": "yes",
   "sub": "llms.txt",
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": "https://motion.dev/llms.txt"
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What Framer Motion does",
   "parts": [
    {
     "t": "prose",
     "text": "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)."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Framer Motion popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "88",
       "of": "/ 100",
       "l": "Gid Score, #16 overall"
      },
      {
       "n": "74M",
       "l": "downloads a week, npm"
      },
      {
       "n": "35.5K",
       "l": "GitHub stars"
      },
      {
       "n": "495",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How Framer Motion is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "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%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "268 projects, 11.0%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "244 projects, 7.4%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "234 projects, 7.7%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "47 projects, 16.8%",
       "v": "Devin Desktop",
       "path": "agents/devin-desktop/"
      },
      {
       "l": "33 projects, 7.0%",
       "v": "Gemini CLI",
       "path": "agents/gemini-cli/"
      },
      {
       "l": "26 projects, 5.5%",
       "v": "OpenAI Codex",
       "path": "agents/openai-codex/"
      },
      {
       "l": "19 projects, 17.1%",
       "v": "Roo Code",
       "path": "agents/roo-code/"
      },
      {
       "l": "16 projects, 4.7%",
       "v": "OpenCode",
       "path": "agents/opencode/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 84.2% of its projects",
       "v": "Lucide React",
       "path": "tools/lucide-react/"
      },
      {
       "l": "In 77.6% of its projects",
       "v": "clsx",
       "path": "tools/clsx/"
      },
      {
       "l": "In 75.6% of its projects",
       "v": "Tailwind Merge",
       "path": "tools/tailwind-merge/"
      },
      {
       "l": "In 97.6% of its projects",
       "v": "React",
       "path": "tools/react/"
      },
      {
       "l": "In 66.7% of its projects",
       "v": "Class Variance Authority",
       "path": "tools/class-variance-authority/"
      },
      {
       "l": "In 92.5% of its projects",
       "v": "Tailwind CSS",
       "path": "tools/tailwindcss/"
      },
      {
       "l": "In 67.3% of its projects",
       "v": "Next.js",
       "path": "tools/next/"
      },
      {
       "l": "In 61.8% of its projects",
       "v": "Radix UI",
       "path": "tools/radix-ui/"
      }
     ]
    }
   ]
  },
  {
   "id": "profile",
   "nav": "Profile",
   "h2": "Framer Motion in practice",
   "parts": [
    {
     "t": "h3",
     "text": "Strengths"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "Motion values bypass React renders",
       "v": "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."
      },
      {
       "l": "Composable values for drag-linked effects",
       "v": "<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."
      },
      {
       "l": "Built on the Web Animations API",
       "v": "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."
      },
      {
       "l": "Layout changes from one prop",
       "v": "The site says a single <code>layout</code> prop animates an element between any two layouts."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Watch out for"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "The name and import path changed",
       "v": "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."
      },
      {
       "l": "Shorthand transforms are not accelerated",
       "v": "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."
      },
      {
       "l": "CSS variable animations can end instantly",
       "v": "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."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Animate a div in React"
    },
    {
     "t": "tabs",
     "label": "Example",
     "items": [
      {
       "tab": "Jsx",
       "code": "import { motion } from \"motion/react\"\n\nfunction Component() {\n  return <motion.div animate={{ x: 100 }} />\n}"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "profile",
   "h2": "More about Framer Motion",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Funding",
       "path": "tools/funding/",
       "items": [
        "Own page: https://motion.dev/plus"
       ]
      },
      {
       "title": "Agent Skills for it",
       "path": "skills/",
       "items": [
        "framer-motion: Use when implementing Disney's 12 animation principles with Framer Motion in React applications"
       ]
      },
      {
       "title": "Head to head",
       "items": [
        {
         "text": "Framer Motion vs Motion",
         "note": "used together in 63 projects",
         "path": "tools/compare/framer-motion-vs-motion/"
        },
        {
         "text": "Framer Motion vs GSAP",
         "note": "used together in 45 projects",
         "path": "tools/compare/framer-motion-vs-gsap/"
        }
       ]
      },
      {
       "title": "Packages around it",
       "items": [
        "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"
       ]
      },
      {
       "title": "More in Animation and motion",
       "path": "tools/animation/",
       "items": [
        {
         "text": "tw-animate-css",
         "path": "tools/tw-animate-css/"
        },
        {
         "text": "Tailwind CSS Animate",
         "path": "tools/tailwindcss-animate/"
        },
        {
         "text": "Embla Carousel",
         "path": "tools/embla-carousel-react/"
        },
        {
         "text": "React Native Reanimated",
         "path": "tools/react-native-reanimated/"
        },
        {
         "text": "canvas-confetti",
         "path": "tools/canvas-confetti/"
        },
        {
         "text": "Lenis",
         "path": "tools/lenis/"
        },
        {
         "text": "Lottie React",
         "path": "tools/lottie-react/"
        },
        {
         "text": "Embla Carousel Autoplay",
         "path": "tools/embla-carousel-autoplay/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "Framer Motion",
       "me": true,
       "facts": [
        "MIT",
        "Gid 88",
        "74M/wk"
       ]
      },
      {
       "name": "Motion",
       "why": "Animation library for JavaScript and React with simple, powerful motion primitives.",
       "path": "tools/motion/",
       "facts": [
        "MIT",
        "Gid 83",
        "39.7M/wk"
       ]
      },
      {
       "name": "GSAP",
       "why": "Professional animation library for high-performance CSS, SVG, canvas and React animations.",
       "path": "tools/gsap/",
       "facts": [
        "Standard 'no charge' license: https://gsap.com/standard-license.",
        "Gid 77",
        "8.4M/wk"
       ]
      },
      {
       "name": "React Spring",
       "why": "Physics-based animation library for React and React Three Fiber with smooth transitions.",
       "path": "tools/react-spring-npm/",
       "facts": [
        "MIT",
        "Gid 66",
        "2.3M/wk"
       ]
      },
      {
       "name": "Anime.js",
       "why": "Lightweight JavaScript animation engine for creating smooth animations.",
       "path": "tools/animejs/",
       "facts": [
        "MIT",
        "Gid 62",
        "1.2M/wk"
       ]
      }
     ],
     "more": "Compare Framer Motion with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install framer-motion"
    },
    {
     "t": "h3",
     "text": "Rules for your agent"
    },
    {
     "t": "rules",
     "label": "Paste into AGENTS.md or CLAUDE.md",
     "text": "## Motion (Framer Motion)\n- Install `motion` and import from `motion/react` in new code, not from `framer-motion`.\n- For values that change often (drag, scroll, pointer), use `useMotionValue` and `useTransform` so updates skip React re-renders.\n- When you subscribe with a motion value's `on` method inside a component, wrap the call in `useEffect` or use `useMotionValueEvent`.\n- Prefer animating `transform` and `opacity`. If hardware acceleration matters, animate a full `transform` string instead of `x`/`scale`.\n- Animate `filter: drop-shadow(...)` instead of `boxShadow`, and `clipPath: inset(... round ...)` instead of `borderRadius`.\n- Do not import Motion+ components (Motion UI, AnimateNumber) as if they were in the free package. Check the docs entry first.\n- Fetch docs as Markdown by adding `.md` to a docs URL, or use the free MCP server at https://mcp.motion.dev.\n"
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm framer-motion"
  ],
  [
   "Category",
   "Animation and motion"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Latest version",
   "14.1.0, October 9, 2026"
  ],
  [
   "On GitHub since",
   "November 2018"
  ],
  [
   "Gid Score",
   "88.0"
  ],
  [
   "Rank in category",
   "#2 of 46"
  ],
  [
   "GitHub",
   "motiondivision/motion"
  ],
  [
   "Last change",
   "Nov 24, 2026"
  ]
 ],
 "good": [
  "Used by Framer, Figma, as listed by the source; we have not checked each one."
 ],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/motiondivision.png"
}