Production-grade web animations for Claude Code, powered by Motion.dev.
A Claude Code skill that generates 120fps GPU-accelerated animations using Motion.dev (the successor to Framer Motion). Say "add a hero animation" or "create scroll effects" and get production-ready TypeScript code with accessibility and performance baked in.
Why This Exists | Install | Quick Start | How It Works | Animation Types | What's Inside | Contributing | License
Motion.dev has 10M+ downloads per month. It is the standard for web animations in React, Next.js, Svelte, and Astro. But writing good animations is hard. You need spring physics, GPU-accelerated properties, prefers-reduced-motion support, and 60fps+ performance targets.
This skill gives Claude Code deep knowledge of Motion.dev patterns so it can generate production animation code from natural language. No more copying from docs. No more guessing spring values. Just describe what you want.
Add to your Claude Code skills directory:
# Clone into your skills folder
git clone https://github.com/199-biotechnologies/motion-dev-animations-skill.git ~/.claude/skills/motion-dev-animations
# Or add as a git submodule in your project
git submodule add https://github.com/199-biotechnologies/motion-dev-animations-skill.git .claude/skills/motion-dev-animations
The skill activates automatically when you mention animations, Motion.dev, scroll effects, parallax, hover effects, or interactive UI in your prompts.
Once installed, use natural language with Claude Code:
"Create a hero section with a fade-up entrance animation"
"Add parallax scrolling to this landing page"
"Build a card component with hover lift and shadow effects"
"Implement drag-to-reorder for this list"
"Add a magnetic button effect to the CTA"
Claude Code will clarify your framework, plan the animation strategy, generate the code, and verify performance.
The skill follows a four-step workflow:
prefers-reduced-motion support, keyboard navigation, and bundle size under 50KB.The skill uses progressive loading. The core instructions are ~2,000 tokens. Examples, API reference, and templates load on-demand only when needed. This means 87% less context consumption compared to loading everything upfront.
useScroll and useTransformwhileHoverdrag constraintswhileTaplayout animationsAnimatePresencelayoutIdmotion-dev-animations-skill/
├── SKILL.md # Core instructions (~2,000 tokens)
├── examples/ # Animation patterns (loaded on-demand)
│ ├── hero-fade-up.md # Apple-style entrance animation
│ ├── scroll-reveal.md # Intersection Observer reveals
│ ├── card-hover.md # Hover lift + shadow effect
│ ├── parallax-layers.md # Multi-speed parallax
│ ├── magnetic-button.md # Cursor-following button
│ └── example-config.json # Sample motion config
├── reference/ # API docs (loaded on-demand)
│ ├── api-reference.md # Full Motion.dev API
│ └── spring-physics.md # Spring values and presets
├── templates/ # Starter code
│ ├── nextjs-page.tsx # Full page with animations
│ └── component-library.tsx # Reusable animation components
├── schema/ # Validation
│ └── motion-config.schema.json # JSON schema for configs
└── scripts/ # Tools
└── validate_motion_config.py # Config validator
Every animation this skill generates meets these targets:
| Metric | Target | Method |
|---|---|---|
| Frame rate | 60fps+ (120fps ideal) | GPU-accelerated transforms only |
| Bundle size | < 50KB | Tree-shaking, code splitting |
| Accessibility | Full | prefers-reduced-motion respected |
| Layout shifts | Zero | No width/height animations |
| Keyboard support | Full | Focus states, navigation |
| Framework | Version | Status |
|---|---|---|
| React | 19+ | Full support |
| Next.js | 15+ | Full support (App Router) |
| Svelte | 5+ | Full support |
| Astro | 4+ | Full support |
| Vue | 3+ | Use motion-v package |
| Vanilla JS | ES2020+ | Via motion package |
See CONTRIBUTING.md for guidelines. The short version: add examples in examples/, expand API docs in reference/, or create templates in templates/.
Built by Boris Djordjevic at 199 Biotechnologies | Paperfoot AI