π¦ ClawHub
Motion.dev Complete Documentation
by @leonaaardob
Complete Motion.dev documentation - modern animation library for React, JavaScript, and Vue (formerly Framer Motion)
TERMINAL
clawhub install lb-motion-skillπ About This Skill
name: motion version: 1.0.0 description: Complete Motion.dev documentation - modern animation library for React, JavaScript, and Vue (formerly Framer Motion) author: Leonardo Balland tags: - motion - animation - react - javascript - vue - framer-motion - transitions - gestures - scroll - spring - keyframes read_when: - Working with Motion animations or Framer Motion - Implementing animations in React, Vue, or vanilla JavaScript - Creating scroll-linked or scroll-triggered animations - Building gesture-based interactions - Optimizing animation performance - Migrating from Framer Motion to Motion
Motion.dev Documentation
Motion is a modern animation library for React, JavaScript, and Vue. It's the evolution of Framer Motion, offering:
Quick Reference
Installation
npm install motion
Basic Animation
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
import { motion } from "motion/react"
Scroll Animations
import { scroll } from "motion"scroll(animate(".box", { scale: [1, 2, 1] }))
Documentation Structure
quick-start.md - Installation and first animationWhen to Use This Skill
Use this skill when: