Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/laoz40-motion
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design, frontend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
motion- Description
- Motion (Framer Motion) React animation library. Use for drag-and-drop, scroll animations, gestures, SVG morphing, or encountering bundle size, complex transitions, spring physics errors.
- License
- MIT
- Instructions
- 602 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Agent Skills spec issues
- body: 602 lines (spec recommends under 500)
Files (15)
- SKILL.md
- openai.yaml · agents/
- accessibility-guide.md · references/
- common-patterns.md · references/
- core-concepts-deep-dive.md · references/
- motion-vs-auto-animate.md · references/
- nextjs-integration.md · references/
- performance-optimization.md · references/
- init-motion.sh · scripts/
- optimize-bundle.sh · scripts/
- layout-transitions.tsx · templates/
- motion-nextjs-client.tsx · templates/
- motion-vite-basic.tsx · templates/
- scroll-parallax.tsx · templates/
- ui-components.tsx · templates/
SKILL.md (first lines)
# Motion Animation Library ## Overview Motion (package: `motion`, formerly `framer-motion`) is the industry-standard React animation library used in production by thousands of applications. With 30,200+ GitHub stars and 300+ official examples, it provides a declarative API for creating sophisticated animations with minimal code. **Key Capabilities:** - **Gestures**: drag, hover, tap, pan, focus with cross-device support - **Scroll Animations**: viewport-triggered, scroll-linked, parallax effects - **Layout Animations**: FLIP technique for smooth layout changes, shared element transitions - **Spring Physics**: Natural, customizable motion with physics-based easing - **SVG**: Path morphing, line drawing, attribute animation - **Exit Animations**: AnimatePresence for unmounting transitions - **Performance**: Hardware-accelerated, ScrollTimeline API, bundle optimization (2.3 KB - 34 KB) **Production Tested**: React 19, Next.js 15, Vite 6, Tailwind v4 --- ## When to Use This Skill ### ✅ Use Motion When: **Complex Interactions**: - Drag-and-drop interfaces (sortable lists, kanban boards, sliders) - Hover states with scale/rotation/color changes - Tap feedback with bounce/squeeze effects - Pan gestures for mobile-friendly controls **Scroll-Based Animations**: - Hero sections with parallax layers - Scroll-triggered reveals (fade in as elements enter viewport) - Progress bars linked to scroll position - Sticky headers with scroll-dependent transforms **Layout Transitions**: - Shared element transitions between routes (card → detail page) - Expand/collapse with automatic height animation - Grid/list view switching with smooth repositioning - Tab navigation with animated underline **Advanced Features**: - SVG line drawing animations - Path morphing between shapes - Spring physics for natural bounce - Orchestrated sequences (staggered reveals) - Modal dialogs with backdrop blur **Bundle Optimization**: - Need 2.3 KB animation library (useAnimate mini) - Want to reduce Motion from 34 KB to 4.6 KB (LazyMotion) ### ❌ Don't Use Motion When: - **Simple list animations** (use `auto-animate` instead: 3.28 KB vs 34 KB) - **Static content** without interactions - **Cloudflare Workers** (use `framer-motion` v12.23.24 workaround - see Known Issues) - **3D animations** (use Three.js or React Three Fiber instead) --- ## Installation ### Latest Stable Version ```bash bun add motion # preferred # or: npm install motion # or: yarn add motion ``` **Current Version**: 12.23.24 (verified 2025-11-07) **Alternative for Cloudflare Workers**: ```bash # Use framer-motion if deploying to Cloudflare Workers bun add framer-motion # or: npm install framer-motion ``` ### Package Information - **Bundle Size**: - Full `motion` component: ~34 KB minified+gzipped - `LazyMotion` + `m` component: ~4.6 KB - `useAnimate` mini: 2.3 KB (smallest React animation library) - `useAnimate` hybrid: 17 KB - **Dependencies**: React 18+ or React 19+ - **TypeScript**: Native support included (no @types package needed) --- ## Core Concepts ### 1. The `motion` Component
From laoz40/.dotfiles, MIT.
More from laoz40/.dotfiles
- 0.559score
neverthrow
laoz40
Implements TypeScript neverthrow library, for better error handling using the Result type.
SkillAFreshness: AClaude Code +9 - 0.559score
pr-screenshots
laoz40
Capture UI evidence for pull requests and attach images to GitHub PRs with gh.
SkillAFreshness: AClaude Code +9 - 0.558score
create-pr
laoz40
Drafts clear pull request descriptions from repository changes.
SkillAFreshness: AClaude Code +9 - 0.558score
project-setup
laoz40
Set up a project with strict linting, formatting, static analysis, environment validation, and CI guardrails.
SkillAFreshness: AClaude Code +9 - 0.536score
create-verification-skill
laoz40
Generate a project-local verification skill that drives your app the way a user does — any language, framework, or platform.
SkillAFreshness: AClaude Code +9 - 0.534score
code-review
laoz40
Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes: Standards (does the code follow this repo's documented coding…
SkillAFreshness: AClaude Code +9 - 0.534score
codebase-design
laoz40
Shared vocabulary for designing deep modules.
SkillAFreshness: AClaude Code +9 - 0.531score
maintain-verification-skill
laoz40
Periodic pass that keeps a project's verification skill and feature map honest: parallel source readers per feature, one live session driving every feature…
SkillAFreshness: AClaude Code +9 - 0.518score
commit
laoz40
Draft one Conventional Commit message for the staged Git changes.
SkillBFreshness: BClaude Code +9 - 0.469score
ponytail
laoz40
Reviews or audits code for over-engineering using the Ponytail ladder: YAGNI, stdlib, native platform features, existing dependencies, one-liners, then…
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Sep 25, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/laoz40/.dotfiles
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from laoz40
- 0.559score
neverthrow
laoz40
Implements TypeScript neverthrow library, for better error handling using the Result type.
SkillAFreshness: AClaude Code +9 - 0.559score
pr-screenshots
laoz40
Capture UI evidence for pull requests and attach images to GitHub PRs with gh.
SkillAFreshness: AClaude Code +9 - 0.558score
create-pr
laoz40
Drafts clear pull request descriptions from repository changes.
SkillAFreshness: AClaude Code +9 - 0.558score
project-setup
laoz40
Set up a project with strict linting, formatting, static analysis, environment validation, and CI guardrails.
SkillAFreshness: AClaude Code +9 - 0.536score
create-verification-skill
laoz40
Generate a project-local verification skill that drives your app the way a user does — any language, framework, or platform.
SkillAFreshness: AClaude Code +9 - 0.534score
code-review
laoz40
Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes: Standards (does the code follow this repo's documented coding…
SkillAFreshness: AClaude Code +9
Cite this page
motion skill. Agent Mart. https://agentmart.dev/skills/laoz40-motion (last updated 2026-10-24)