Skip to content

Motion.dev Complete Documentation

Verified

Complete Motion.dev documentation - modern animation library for React, JavaScript, and Vue (formerly Framer Motion)

712

Install

Claude Code

Add to .claude/skills/

About This Skill

# Motion.dev Documentation

Motion is a modern animation library for React, JavaScript, and Vue. It's the evolution of Framer Motion, offering:

  • Tiny size: Just 2.3kb for the mini HTML/SVG version
  • High performance: Hardware-accelerated animations
  • Flexible: Animate HTML, SVG, WebGL, and JavaScript objects
  • Easy to use: Intuitive API with smart defaults
  • Spring physics: Natural, kinetic animations
  • Scroll animations: Link values to scroll position
  • Gestures: Drag, hover, tap, and more

Quick Reference

Installation

```bash npm install motion ```

Basic Animation

```javascript import { animate } from "motion"

// Animate elements animate(".box", { rotate: 360, scale: 1.2 })

// Spring animation animate(element, { x: 100 }, { type: "spring", stiffness: 300 })

// Stagger multiple elements animate("li", { opacity: 1 }, { delay: stagger(0.1) }) ```

React

```jsx import { motion } from "motion/react"

<motion.div animate={{ rotate: 360 }} transition={{ duration: 2 }} /> ```

Scroll Animations

```javascript import { scroll } from "motion"

scroll(animate(".box", { scale: [1, 2, 1] })) ```

Documentation Structure

  • `quick-start.md` - Installation and first animation
  • More docs to be added...

When to Use This Skill

  • Use this skill when:
  • Implementing animations in web applications
  • Optimizing animation performance
  • Creating scroll-based effects
  • Building interactive UI with gestures
  • Migrating from Framer Motion to Motion

External Resources

  • Official site: https://motion.dev
  • GitHub: https://github.com/motiondivision/motion
  • Examples: https://motion.dev/examples

Use Cases

  • Implement smooth animations in React, JavaScript, and Vue with Motion.dev
  • Create scroll-triggered animations and page transitions
  • Build gesture-based interactions with spring physics animations
  • Migrate from Framer Motion to Motion.dev's updated API
  • Reference Motion.dev documentation for animation best practices and patterns

Pros & Cons

Pros

  • + Compatible with multiple platforms including claude-code, openclaw
  • + Well-documented with detailed usage instructions and examples
  • + Strong community adoption with a large number of downloads

Cons

  • - No built-in analytics or usage metrics dashboard
  • - Configuration may require familiarity with frontend development concepts

Frequently Asked Questions

What does Motion.dev Complete Documentation do?

Complete Motion.dev documentation - modern animation library for React, JavaScript, and Vue (formerly Framer Motion)

What platforms support Motion.dev Complete Documentation?

Motion.dev Complete Documentation is available on Claude Code, OpenClaw.

What are the use cases for Motion.dev Complete Documentation?

Implement smooth animations in React, JavaScript, and Vue with Motion.dev. Create scroll-triggered animations and page transitions. Build gesture-based interactions with spring physics animations.

Stay Updated on Agent Skills

Get weekly curated skills + safety alerts