Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
M

motion

> 前端框架
Open source

A modern animation library for React and JavaScript

33.0K stars0 likes1 views
WebsiteGitHub

About

A modern animation library for React and JavaScript


Motion

An open source animation library
for JavaScript, React and Vue

bash
# React / JavaScript
npm install motion

# Vue
npm install motion-v

Table of Contents

  1. Why Motion?
  2. 🍦 Platforms
  3. 🎓 Examples
  4. ⚡️ Motion+
  5. 👩🏻‍⚖️ License
  6. 💎 Contribute
  7. ✨ Sponsors

Why Motion?

  • Simple API: First-class React, JavaScript, and Vue packages.
  • Hybrid engine: Power of JavaScript combined with native browser APIs for 120fps, GPU-accelerated animations.
  • Production-ready: TypeScript, extensive test suite, tree-shakable, tiny footprint. Batteries included: Gestures, springs, layout transitions, scroll-linked effects, timelines.

🍦 Platforms

Motion is available for React, JavaScript and Vue.

React

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

JS

javascript
import { animate } from "motion"

animate("#box", { x: 100 })

Get started with JavaScript.

Vue

xml
<script>
    import { motion } from "motion-v"
</script>

<template> <motion.div :animate={{ x: 100 }} /> </template>

Get started with Motion for Vue.

🎓 Examples & tutorials

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.

⚡️ Motion+

A one-time payment, lifetime-updates membership:

  • 330+ examples
  • 100+ tutorials
  • Premium APIs like Cursor and Ticker
  • Transition editor for Cursor and VS Code
  • AI skills
  • Private Discord
  • Early access content

Get Motion+

👩🏻‍⚖️ License

  • Motion is MIT licensed.

💎 Contribute

  • Want to contribute to Motion? Our contributing guide has you covered.

✨ Sponsors

Motion is sustainable thanks to the kind support of its sponsors.

Become a sponsor

Partners

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.

Platinum

Gold

Silver

Personal sponsors

  • OlegWock
  • Lambert Weller
  • Jake LeBoeuf

Issues· 108 open

View all issuesOpen on GitHub
  • #3658

    `useScroll` with `"start"/"end"` string offsets broken with `position: sticky` inside transformed parent since 12.37.0

    wontfixUpdated Sep 29, 2026
  • #3853

    [FEATURE] Support negative 'bounce' values (-1.0 to 0) in spring config

    featureUpdated Sep 26, 2026
  • #3849

    sortNodePosition throws when a sibling in enteringChildren has not mounted yet (Firefox: compareDocumentPosition: Argument 1 is not an object)

    Updated Sep 25, 2026
  • #3841

    [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

    Updated Sep 25, 2026
  • #3801

    [BUG] @types/react is not declared as a peer dependency, breaking types under strict linkers

    Updated Sep 23, 2026
  • #3786

    [BUG] ClipPath animation/effect fails to render on Chrome v151

    bugUpdated Sep 14, 2026
  • #3823

    [BUG] Reorder.Item with dragConstraints gets a faulty drag offset on window resize

    bugUpdated Sep 14, 2026
  • #2611

    [BUG] RotateZ not working in Shared Layout Animation

    bugUpdated Sep 14, 2026
  • #3820

    [BUG] Animations start late with Chrome DevTools playback at 10%

    Updated Sep 13, 2026
  • #3807

    [BUG] AnimatePresence child re-entering during its exit stays stuck at initial (stale isExitComplete + blockInitialAnimation); MotionValue.start() orphans the next animation

    Updated Sep 10, 2026

> Tags

TypeScriptanimationanimation-jsmotionreact

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 30, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架