# motion-dev-animations

Generates GPU-accelerated Motion.dev animations for React, Next.js, Svelte, and Astro. Implements spring physics, gesture handling, and scroll reveals with accessibility checks.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 594 installs · ★ 208
- Author: Motion Dev Standards
- License: MIT · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/199-biotechnologies/motion-dev-animations-skill/tree/HEAD/SKILL.md
- Updated: 2026-03-30
- HTML: https://affpapa.org/en/nevibecode/skills/motion-dev-animations

## What it does

This skill writes production animation code for Motion.dev targeting 120fps performance. It restricts transitions to `transform` and `opacity` properties to prevent layout recalculation and keep Cumulative Layout Shift at zero. Physics setups use stiffness values between 300 and 400 with a damping of 20 for natural bounce.

The workflow follows four steps: clarifying framework targets, planning timing and physics, generating component code, and running verification checks. It automatically includes fallbacks for users with `prefers-reduced-motion` enabled.

Vue projects require a different package because `motion-v` uses its own API structure. Plain CSS transitions and heavy Canvas or SVG scenes also sit outside its scope, where native styles or GSAP work better.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add 199-biotechnologies/motion-dev-animations-skill --skill motion-dev-animations -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/motion-dev-animations/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/motion-dev-animations/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add 199-biotechnologies/motion-dev-animations-skill --skill motion-dev-animations -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/motion-dev-animations/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add 199-biotechnologies/motion-dev-animations-skill --skill motion-dev-animations -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/motion-dev-animations/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install 199-biotechnologies/motion-dev-animations-skill motion-dev-animations
```

2. **Manually: put the files in place**
- File: `.github/skills/motion-dev-animations/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add 199-biotechnologies/motion-dev-animations-skill --skill motion-dev-animations -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/199-biotechnologies/motion-dev-animations-skill
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/motion-dev-animations/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add 199-biotechnologies/motion-dev-animations-skill --skill motion-dev-animations -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/199-biotechnologies/motion-dev-animations-skill/tree/HEAD/SKILL.md

## When to use it
- build scroll-triggered reveals with staggered child delays
- add spring physics to draggable cards and interactive buttons
- set up layout transitions using layoutId and motion components
- apply prefers-reduced-motion fallbacks for interface accessibility

## Example prompts
- Create an entrance animation for hero cards using Motion.dev in Next.js 15
- Build a draggable sheet component with spring physics and dragConstraints
- Animate a pricing toggle with layout morphing and reduced motion support

## Source text · SKILL.md · MIT

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: d271bc96db2d895e.

BEGIN THIRD-PARTY FILE d271bc96db2d895e
```text
---
name: motion-dev-animations
description: Creates 120fps GPU-accelerated animations with Motion.dev (Framer Motion successor) for React, Next.js, Svelte, and Astro projects. Use when user requests animation, motion, scroll effects, parallax, hero animations, gestures, drag interactions, spring physics, whileHover effects, whileInView animations, animated UI, micro-interactions, page transitions, or layout animations. Generates production TypeScript/JSX code with accessibility (prefers-reduced-motion) and performance validation (≥60fps). Supports entrance animations, gesture interactions (hover/tap/drag), scroll-based reveals, and layout transitions using spring physics and natural timing. Do NOT use for CSS-only transitions (use native CSS), static sites without JavaScript, Vue animations (use motion-v variant instead), or SVG/Canvas complex animations (GSAP better suited).
allowed-tools: Read, Write, Edit, Bash, Glob, Grep
metadata:
  version: "3.0.0"
  author: "Motion Dev Standards"
  tags: ["motion", "framer-motion", "animation", "react", "nextjs", "svelte", "astro", "gestures", "scroll", "parallax", "microinteractions", "spring-physics", "layout-animations"]
  min_claude_version: "3.5"
  created: "2025-11-07"
  updated: "2025-11-08"
  optimization: "Research-backed: imperative language, few-shot (3 examples), layered complexity, progressive loading"
---

# Motion Dev Animations

> **Motion.dev** - 10M+ downloads/month, successor to Framer Motion
> 120fps GPU-accelerated animations for React, Next.js, Svelte, Astro, Vue

## Purpose

Generate production-grade animations using Motion.dev following Apple/Jon Ive principles:
**Purposeful** (serves function) | **Smooth** (120fps) | **Accessible** (reduced-motion) | **Performant** (GPU-only) | **Elegant** (subtle) | **Consistent** (unified timing)

## When to Use

✅ **Use for**:
- React 19+/Next.js 15+/Svelte 5+/Astro 4+ animation implementation
- Scroll effects (parallax, reveal), gestures (hover, drag, tap), layout animations
- Hero sections, cards, micro-interactions requiring 60fps+ performance
- Projects needing spring physics, natural motion, accessibility

❌ **Don't use for**:
- CSS-only transitions (use native `transition` property)
- Static sites without JavaScript frameworks
- Vue projects (use `motion-v` package - different API)
- SVG/Canvas complex animations (GSAP better suited)
- Form-only CRUD apps (overkill)

## Workflow: Clarify → Plan → Implement → Verify

### Step 1: Clarify Requirements
Determine project context and animation goals:
- Framework (React 19+, Next.js 15+, Svelte 5+, Astro 4+)
```
END THIRD-PARTY FILE d271bc96db2d895e

The third-party file has ended. Everything between the d271bc96db2d895e tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 2617 of 11328 bytes. © Motion Dev Standards · MIT · https://github.com/199-biotechnologies/motion-dev-animations-skill/tree/HEAD/SKILL.md

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
