A modern animation library for React and JavaScript
# React / JavaScript
npm install motion
# Vue
npm install motion-vMotion is available for React, JavaScript and Vue.
import { motion } from "motion/react"
function Component() {
return <motion.div animate={{ x: 100 }} />
}Get started with Motion for React.
Note: Framer Motion is now Motion. Import from motion/react instead of framer-motion.
import { animate } from "motion"
animate("#box", { x: 100 })Get started with JavaScript.
<script>
import { motion } from "motion-v"
</script>
<template> <motion.div :animate={{ x: 100 }} /> </template>Get started with Motion for Vue.
Browse 330+ official examples, with copy-paste code that'll level-up your animations whether you're a beginner or an expert.
Over 100 examples come with a full step-by-step tutorial.
A one-time payment, lifetime-updates membership:
Motion is sustainable thanks to the kind support of its sponsors.
Motion powers the animations for all websites built with Framer, the web builder for creative pros. The Motion website itself is built on Framer, for its delightful canvas-based editing and powerful CMS features.
Motion drives the animations on the Cursor homepage, and is working with Cursor to bring powerful AI workflows to the Motion examples and docs.
`useScroll` with `"start"/"end"` string offsets broken with `position: sticky` inside transformed parent since 12.37.0
[FEATURE] Support negative 'bounce' values (-1.0 to 0) in spring config
sortNodePosition throws when a sibling in enteringChildren has not mounted yet (Firefox: compareDocumentPosition: Argument 1 is not an object)
[BUG] Animation started late in a long synchronous task begins "already running": its start time is the task's first `time.now()` read, not the `animate()` call
[BUG] @types/react is not declared as a peer dependency, breaking types under strict linkers
[BUG] ClipPath animation/effect fails to render on Chrome v151
[BUG] Reorder.Item with dragConstraints gets a faulty drag offset on window resize
[BUG] RotateZ not working in Shared Layout Animation
[BUG] Animations start late with Chrome DevTools playback at 10%
[BUG] AnimatePresence child re-entering during its exit stays stuck at initial (stale isExitComplete + blockInitialAnimation); MotionValue.start() orphans the next animation