Sandbox
@199-biotechnologies/motion-dev-animations-skill

Motion.dev animation skill for Claude Code

This skill gives Claude Code Motion.dev patterns for building web animations that fit common UI tasks like hero entrances, scroll effects, hover motion, and drag interactions. It combines core instructions in `SKILL.md` with examples, API reference notes, starter templates, and config validation so the agent can generate and check animation code.

98 stars10 forksTypeScriptUpdated 5mo ago
Who it's for

Builders who want Claude Code to write Motion.dev animations that feel polished and stay accessible.

What it delivers

You can describe an animation in plain words and get production-ready Motion.dev code with performance and accessibility checks.

What it does

Entrance animation patterns

Includes hero fade up, hero stagger, and scroll reveal examples for landing pages and content blocks.

Scroll effects

Covers parallax layers and scroll progress patterns using Motion.dev scroll utilities.

Gesture interactions

Shows card hover, magnetic button, and drag carousel behaviors for interactive UI.

Layout and micro-interactions

Includes button press, toggle switch, loading spinner, list reorder, accordion, and tab switch patterns.

Progressive instruction loading

Loads core instructions first, then examples, reference docs, and templates only when needed.

Validation and schema support

Adds `schema/motion-config.schema.json` and `scripts/validate_motion_config.py` for checking motion configs.

How to get it

  1. 1Add 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
  2. 2Once 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"

README

Motion.dev Animations Skill

Production-grade web animations for Claude Code, powered by Motion.dev.

Star this repo Follow @longevityboris

Claude Code Motion.dev License: MIT TypeScript

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


Why This Exists

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.

Install

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.

Quick Start

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.

How It Works

The skill follows a four-step workflow:

  1. Clarify -- Determines your framework (React 19+, Next.js 15+, Svelte 5+, Astro 4+), animation type, and design goals.
  2. Plan -- Selects the right Motion.dev patterns, spring physics, and easing curves for your use case.
  3. Implement -- Generates TypeScript/JSX code using GPU-accelerated properties (transform, opacity, filter only). No layout thrashing.
  4. Verify -- Checks for 60fps+ performance, 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.

Animation Types

Entrance Animations

  • Hero Fade Up -- Apple-style fade + slide entrance for landing pages
  • Hero Stagger -- Orchestrated title, subtitle, CTA sequence
  • Scroll Reveal -- Intersection Observer fade-in on scroll

Scroll Effects

  • Parallax Layers -- Multi-speed depth effect with useScroll and useTransform
  • Scroll Progress -- Reading progress bar tied to scroll position

Gesture Interactions

  • Card Hover -- Lift with shadow using whileHover
  • Magnetic Button -- Cursor-following effect for CTAs
  • Drag Carousel -- Touch-friendly horizontal slider with drag constraints

Micro-interactions

  • Button Press -- Tactile tap feedback with whileTap
  • Toggle Switch -- Smooth state transitions with layout animations
  • Loading Spinner -- Spring-based loader animation

Layout Animations

  • List Reorder -- Drag-to-reorder with FLIP technique
  • Accordion -- Smooth expand/collapse with AnimatePresence
  • Tab Switch -- Shared layout transitions with layoutId

What's Inside

motion-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

Performance Standards

Every animation this skill generates meets these targets:

MetricTargetMethod
Frame rate60fps+ (120fps ideal)GPU-accelerated transforms only
Bundle size< 50KBTree-shaking, code splitting
AccessibilityFullprefers-reduced-motion respected
Layout shiftsZeroNo width/height animations
Keyboard supportFullFocus states, navigation

Framework Support

FrameworkVersionStatus
React19+Full support
Next.js15+Full support (App Router)
Svelte5+Full support
Astro4+Full support
Vue3+Use motion-v package
Vanilla JSES2020+Via motion package

Contributing

See CONTRIBUTING.md for guidelines. The short version: add examples in examples/, expand API docs in reference/, or create templates in templates/.

License

MIT


Files in the repo

Repository payload14 top-level entries
  • examples
  • reference
  • schema
  • scripts
  • templates
  • ACTIVATION_TEST.md
  • CONTRIBUTING.md
  • DEPLOYMENT_STATUS.md
  • LICENSE
  • README.md
  • RESEARCH_SYNTHESIS.md
  • SKILL.md
  • SKILL.md.backup
  • VALIDATION_V3.md

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More skills

obra/
superpowers

An agentic skills framework & software development methodology that works.

285k
1 add

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.

117k
1 add
Vincentwei1021/
anything2explainer

Topic in, narrated explainer video out. A Claude Code / Codex skill that turns any topic into a black-canvas motion-graphics explainer video with TTS voiceover, subtitles and a chapter progress bar. Chinese or English; every frame drawn in code with Remotion.

666

Open-source AI job search: scan job portals, evaluate listings into a structured A-H report with a global 1-5 score, tailor your CV, track applications — runs locally in your AI coding CLI (Claude Code, Codex, OpenCode, Antigravity…)

71k