Agent skill

Motion

by secondsky in secondsky/claude-skills

Motion (Framer Motion) React animation library. An agent skill from secondsky/claude-skills.

MITAuto-check passedFrontend & Design

Install Motion

skills CLI
$ npx skills add secondsky/claude-skills --skill motion -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install secondsky/claude-skills motion --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/secondsky/claude-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/motion/skills/motion .claude/skills/motion && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
motion
GitHub stars
227
Token cost
~4.1k tokens
SKILL.md length
1,396 words
Files
14 (incl. scripts, references)
Skills in repo
169
Repo updated
First seen
Licence
MIT

At a glance

Motion (Framer Motion) React animation library. An agent skill from secondsky/claude-skills.

  • Works in 7 steps: The motion Component → Variants (Animation Orchestration) → AnimatePresence (Exit Animations) → …
  • Scroll animations
  • SKILL.md covers Overview, When to Use This Skill, Installation and Core Concepts, plus 6 more sections
  • Runs Shell scripts from its folder; calls bun

What it does

Motion is an agent skill from secondsky/claude-skills. 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.

Its SKILL.md is about 4.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 16 other files, including scripts and reference files (for example `references/accessibility-guide.md`, `references/common-patterns.md` and `references/core-concepts-deep-dive.md`).

It sits in Frontend & Design, covering Web animation and motion and Web performance. It works with React and Motion. The repository describes itself as: Production-ready skills for Claude Code CLI - Cloudflare, React, Tailwind v4, and AI integrations. The licence is MIT.

When your agent uses it

  • Scroll animations
  • Encountering bundle size
  • Complex transitions
  • Spring physics errors

Example prompts

  • “/motion”

Requirements

  • Node.js
  • A Bash shell

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. The motion Component
  2. Variants (Animation Orchestration)
  3. AnimatePresence (Exit Animations)
  4. Layout Animations (FLIP)
  5. Scroll Animations
  6. Gestures
  7. Spring Physics

What it can do on your machine

Read from SKILL.md and the folder at commit 8837836. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 2 files in scripts/ (Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • bun

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • motion.dev
    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Motion loads about 4.1k tokens when it runs, and up to ~26k if it reads all its reference files. Until then it costs about 48 tokens; SKILL.md has 1,396 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~48
When it runs · the whole SKILL.md, loaded when a task matches
~4.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~26k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from secondsky/claude-skills at commit 8837836, republished under its MIT licence (© secondsky). 1,396 words, ~4,054 tokens.

Download SKILL.mdSave it as .claude/skills/motion/SKILL.md (or your agent's skills folder). This skill also uses 13 other files; get the full folder from GitHub.
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

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)

Recommended Stack: React 19, Next.js 16, Vite 7, 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 (historically needed the framer-motion alias; with motion v12.43+ the main package works on Workers — 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.43.0 (verified 2026-08-03)

Note: motion is the current package name. framer-motion is a deprecated alias that republishes the same code; it still works and is maintained as an install-time alias (notably useful as a Cloudflare Workers build workaround), but new projects should install motion.

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

Transform any HTML/SVG element into an animatable component:

tsx
import { motion } from "motion/react"

// Basic animation
<motion.div
  initial={{ opacity: 0, y: 20 }}
  animate={{ opacity: 1, y: 0 }}
  transition={{ duration: 0.5 }}
>
  Content fades in and slides up
</motion.div>

// Gesture controls
<motion.button
  whileHover={{ scale: 1.1 }}
  whileTap={{ scale: 0.95 }}
>
  Click me
</motion.button>

Props:

  • initial: Starting state (object or variant name)
  • animate: Target state (object or variant name)
  • exit: Unmounting state (requires AnimatePresence)
  • transition: Timing/easing configuration
  • whileHover, whileTap, whileFocus: Gesture states
  • whileInView: Viewport-triggered animation
  • drag: Enable dragging ("x", "y", or true for both)
  • layout: Enable FLIP layout animations
2. Variants (Animation Orchestration)

Named animation states that propagate through component tree:

tsx
const variants = {
  hidden: { opacity: 0, y: 20 },
  visible: { opacity: 1, y: 0 }
}

<motion.div variants={variants} initial="hidden" animate="visible">
  Content
</motion.div>

For advanced orchestration (staggerChildren, delayChildren, dynamic variants), load references/core-concepts-deep-dive.md.

3. AnimatePresence (Exit Animations)

Enables animations when components unmount:

tsx
import { AnimatePresence } from "motion/react"

<AnimatePresence>
  {isVisible && (
    <motion.div
      key="modal"
      initial={{ opacity: 0 }}
      animate={{ opacity: 1 }}
      exit={{ opacity: 0 }}
    >
      Modal content
    </motion.div>
  )}
</AnimatePresence>

Critical Rules:

  • AnimatePresence must stay mounted (don't wrap in conditional)
  • All children must have unique key props
  • AnimatePresence wraps the conditional, not the other way around

Common Mistake (exit animation won't play):

tsx
// ❌ Wrong - AnimatePresence unmounts with condition
{isVisible && (
  <AnimatePresence>
    <motion.div>Content</motion.div>
  </AnimatePresence>
)}

// ✅ Correct - AnimatePresence stays mounted
<AnimatePresence>
  {isVisible && <motion.div key="unique">Content</motion.div>}
</AnimatePresence>
4. Layout Animations (FLIP)

Automatically animate layout changes:

tsx
<motion.div layout>
  {isExpanded ? <FullContent /> : <Summary />}
</motion.div>

Special props: layoutId (shared element transitions), layoutScroll (scrollable containers), layoutRoot (fixed positioning).

For advanced patterns (LayoutGroup, layoutId orchestration), load references/core-concepts-deep-dive.md.

5. Scroll Animations
tsx
// Viewport-triggered
<motion.div
  initial={{ opacity: 0, y: 50 }}
  whileInView={{ opacity: 1, y: 0 }}
  viewport={{ once: true }}
>
  Fades in when entering viewport
</motion.div>

// Scroll-linked (parallax)
import { useScroll, useTransform } from "motion/react"
const { scrollYProgress } = useScroll()
const y = useTransform(scrollYProgress, [0, 1], [0, -300])
<motion.div style={{ y }}>Parallax effect</motion.div>

For advanced scroll patterns (useScroll offsets, useTransform easing, parallax layers), load references/core-concepts-deep-dive.md.

6. Gestures
tsx
<motion.div drag="x" dragConstraints={{ left: -200, right: 200 }}>
  Drag me
</motion.div>

Available: whileHover, whileTap, whileFocus, whileDrag, whileInView, drag.

For advanced drag controls (momentum, elastic, event handlers), load references/core-concepts-deep-dive.md.

7. Spring Physics
tsx
<motion.div
  animate={{ x: 100 }}
  transition={{ type: "spring", stiffness: 100, damping: 10 }}
/>

Common presets: Bouncy { stiffness: 300, damping: 10 }, Smooth { stiffness: 100, damping: 20 }.

For spring tuning (mass, visualizer, presets), load references/core-concepts-deep-dive.md.


Integration Guides

Vite: bun add motion → import { motion } from "motion/react" (works out of the box)

Next.js App Router: Requires "use client" directive or client component wrapper

tsx
"use client"
import { motion } from "motion/react"

Tailwind: ⚠️ Remove transition-* classes (causes conflicts with Motion animations)

Cloudflare Workers: Use framer-motion v12.43.0 instead (Motion has Wrangler build issues)

For complete integration guides (Next.js patterns, SSR, framework-specific issues), load references/nextjs-integration.md.


Performance Optimization

Bundle Size: Use LazyMotion (34 KB → 4.6 KB):

tsx
import { LazyMotion, domAnimation, m } from "motion/react"
<LazyMotion features={domAnimation}>
  <m.div>Only 4.6 KB!</m.div>
</LazyMotion>

Large Lists: Use virtualization (react-window, react-virtuoso) for 50+ animated items.

For complete optimization guide (hardware acceleration, memory profiling, production benchmarks), load references/performance-optimization.md.


Accessibility

Respect prefers-reduced-motion:

tsx
import { MotionConfig } from "motion/react"
<MotionConfig reducedMotion="user">
  <App />
</MotionConfig>

Keyboard Support: Use whileFocus for keyboard-triggered animations.

tsx
<motion.button whileFocus={{ scale: 1.1 }} tabIndex={0}>
  Keyboard accessible
</motion.button>

For complete accessibility guide (ARIA patterns, screen readers, AnimatePresence workaround, testing), load references/accessibility-guide.md.


Common Patterns

Modal Dialog (AnimatePresence + backdrop):

tsx
<AnimatePresence>
  {isOpen && (
    <motion.dialog exit={{ opacity: 0 }}>Content</motion.dialog>
  )}
</AnimatePresence>

Accordion (height animation):

tsx
<motion.div animate={{ height: isOpen ? "auto" : 0 }}>
  Content
</motion.div>

For 15+ production patterns (carousel, tabs, scroll reveal, parallax, notifications), load references/common-patterns.md.


Known Issues & Solutions

Issue 1: AnimatePresence Exit Not Working (MOST COMMON)

Symptom: Components disappear instantly without exit animation.

Solution: AnimatePresence must stay mounted, wrap the conditional (not be wrapped by it):

tsx
// ❌ Wrong
{isVisible && <AnimatePresence><motion.div>Content</motion.div></AnimatePresence>}

// ✅ Correct
<AnimatePresence>
  {isVisible && <motion.div key="unique">Content</motion.div>}
</AnimatePresence>
Issue 2: Next.js "use client" Missing

Symptom: Build fails with "motion is not defined" or SSR errors.

Solution: Add "use client" directive:

tsx
"use client"
import { motion } from "motion/react"
Issue 3: Tailwind Transitions Conflict

Symptom: Animations stutter or don't work.

Solution: Remove transition-* classes (Motion overrides CSS transitions):

tsx
// ❌ Wrong: <motion.div className="transition-all" animate={{ x: 100 }} />
// ✅ Correct: <motion.div animate={{ x: 100 }} />
Issue 4: Cloudflare Workers Build Errors

Symptom: Wrangler build fails when using motion package.

Solution: Use framer-motion v12.43.0 instead (GitHub issue #2918):

bash
bun add framer-motion  # Same API, works with Workers
Issue 5: Large List Performance

Symptom: 50-100+ animated items cause severe slowdown.

Solution: Use virtualization (react-window, react-virtuoso).

For 5+ additional issues (layoutScroll, layoutRoot, AnimatePresence + layoutId), load references/nextjs-integration.md or references/core-concepts-deep-dive.md.


Show full SKILL.md (553 more words)Show less

When to Load References

Claude should load these references based on user needs:

Load references/core-concepts-deep-dive.md when:
  • User asks about variants orchestration (staggerChildren, delayChildren, dynamic variants)
  • User needs advanced layout animations (layoutId shared transitions, LayoutGroup)
  • User wants scroll-linked animations (useScroll offsets, useTransform easing, parallax layers)
  • User needs complex drag patterns (momentum, elastic, event handlers, constraints)
  • User asks about spring physics tuning (mass parameter, visualizer, custom presets)
Load references/performance-optimization.md when:
  • User wants to reduce bundle size below 4.6 KB (useAnimate mini, LazyMotion comparison)
  • User mentions "app is slow", "janky animations", "laggy", or "performance issues"
  • User has 50+ animated items in a list (virtualization needed)
  • User needs memory profiling or production benchmarks
Load references/nextjs-integration.md when:
  • User is building with Next.js (App Router or Pages Router)
  • User encounters SSR errors, "use client" errors, or hydration issues
  • User asks about route transitions or page navigation animations
  • User needs Next.js-specific workarounds (Reorder component, AnimatePresence soft navigation)
Load references/accessibility-guide.md when:
  • User asks about "prefers-reduced-motion" or accessibility compliance
  • User needs ARIA integration patterns (roles, labels, announcements)
  • User wants screen reader compatibility
  • User mentions accessibility audits or WCAG compliance
  • User asks about AnimatePresence reducedMotion workaround (known issue #1567)
Load references/common-patterns.md when:
  • User asks for specific UI patterns (modal, accordion, carousel, tabs, dropdown, toast, etc.)
  • User needs copy-paste code examples for production use
  • User wants to see 15+ real-world animation patterns
Load references/motion-vs-auto-animate.md when:
  • User is deciding between Motion and AutoAnimate libraries
  • User mentions "simple list animations" or "bundle size concerns"
  • User asks "which animation library should I use?" or "is Motion overkill?"
  • User needs feature comparison or decision matrix

Templates

This skill includes 5 production-ready templates in the templates/ directory:

  1. motion-vite-basic.tsx - Basic Vite + React + TypeScript setup with common animations
  2. motion-nextjs-client.tsx - Next.js App Router pattern with client component wrapper
  3. scroll-parallax.tsx - Scroll animations, parallax, and viewport triggers
  4. ui-components.tsx - Modal, accordion, carousel, tabs with shared underline
  5. layout-transitions.tsx - FLIP layout animations and shared element transitions

Copy templates into your project and customize as needed.


References

This skill includes 4 comprehensive reference guides:

  • motion-vs-auto-animate.md - Decision guide: when to use Motion vs AutoAnimate
  • performance-optimization.md - Bundle size, LazyMotion, virtualization, hardware acceleration
  • nextjs-integration.md - App Router vs Pages Router, "use client", known issues
  • common-patterns.md - Top 15 patterns with full code examples

See references/ directory for detailed guides.


Scripts

This skill includes 2 automation scripts:

  • init-motion.sh - One-command setup with framework detection (Vite, Next.js, Cloudflare Workers)
  • optimize-bundle.sh - Convert existing Motion code to LazyMotion for smaller bundle

See scripts/ directory for automation tools.


Official Documentation

Related Skills: auto-animate (simple lists), tailwind-v4-shadcn (styling), nextjs (App Router), cloudflare-worker-base

Motion vs AutoAnimate: Load references/motion-vs-auto-animate.md for detailed comparison.


Token Efficiency Metrics

Token Savings: ~83% (30k → 5k tokens) | Error Prevention: 100% (29+ errors) | Time Savings: ~85% (2-3 hrs → 20-30 min)


Package Versions (Verified 2026-08-03)

PackageVersionStatus
motion12.43.0✅ Latest stable
framer-motion12.43.0✅ Deprecated alias of motion (Cloudflare Workers workaround)
react19.2.0✅ Latest stable
vite7.3.0✅ Latest stable

Contributing

Found an issue or have a suggestion?


Recommended Stack: ✅ React 19 + Next.js 16 + Vite 7 + Tailwind v4 Token Savings: ~83% Error Prevention: 100% (29+ documented errors prevented) Bundle Size: 2.3 KB (mini) - 34 KB (full), optimizable to 4.6 KB with LazyMotion Accessibility: MotionConfig reducedMotion support Ready to use! Install with /plugin install motion@claude-skills

© secondsky, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 13 other files (scripts, references) in plugins/motion/skills/motion of secondsky/claude-skills.

  • SKILL.md
  • references/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
  • scripts/init-motion.sh
  • scripts/optimize-bundle.sh
  • templates/layout-transitions.tsx
  • templates/motion-nextjs-client.tsx
  • templates/motion-vite-basic.tsx
  • templates/scroll-parallax.tsx
  • templates/ui-components.tsx

Open the folder on GitHubat commit 8837836

Compare with similar skills

Motion next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Motion compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Motion this skillsecondsky/claude-skills227—~4.1kAutomated safety check: PassMIT
Animated React Component LibrariesHainrixz/editor-pro-max2611 repos~5.7kAutomated safety check: PassCustom licence
Motion Dev Animations199-biotechnologies/motion-dev-animations-skill1051 repos~2.8kAutomated safety check: NotesMIT
Silk Designbendrape1-byte/silk-design138—~1.8kAutomated safety check: PassMIT
Goey Toastanl331/goey-toast1.3k—~1.3kAutomated safety check: WarnMIT
Animatedelphi-ai/animate-skill108—~1.3kAutomated safety check: PassNone

Similar skills

  • Animated React Component Libraries

    Hainrixz/editor-pro-max

    Helps choose and drop in animated React components from Magic UI and React Bits for landing pages, marketing sites and dashboards, instead of hand-coding animations.

    261 GitHub starsUsed in 1 repo~5.7k tokens
    Frontend & DesignAuto-check passed
  • Motion Dev Animations

    199-biotechnologies/motion-dev-animations-skill

    Creates 120fps GPU-accelerated animations with Motion.dev (Framer Motion successor) for React, Next.js, Svelte, and Astro projects.

    105 GitHub starsUsed in 1 repo~2.8k tokens
    Frontend & DesignAuto-check: notes
  • Silk Design

    bendrape1-byte/silk-design

    Build websites and web UI with smooth, polished, high-end motion by default — the buttery feel of premium sites, not static slop.

    138 GitHub stars~1.8k tokensUpdated 1 mo ago
    Frontend & DesignAuto-check passed
  • Goey Toast

    anl331/goey-toast

    Install and use goey-toast — a gooey, morphing React toast component built on Sonner with Framer Motion.

    1.3k GitHub stars~1.3k tokensUpdated 1 mo ago
    Frontend & DesignAuto-check: warnings
  • Animate

    delphi-ai/animate-skill

    Animation patterns and best practices for Next.js/React applications.

    108 GitHub stars~1.3k tokensUpdated 8 mo ago
    Frontend & DesignAuto-check passed
  • Awwwards-Level React Animations

    Hainrixz/editor-pro-max

    Guides React animation work with GSAP, Motion, Anime.js and Lenis for scroll effects, page transitions, text effects and generative visuals, with a library decision table.

    261 GitHub stars~4.4k tokensUpdated 6 mo ago
    Frontend & DesignAuto-check passed

More from secondsky/claude-skills

All 169 skills in this repo
  • Tanstack AI

    secondsky/claude-skills

    TanStack AI (alpha) provider-agnostic type-safe chat with streaming for OpenAI, Anthropic, Gemini, Ollama.

    227 GitHub starsUsed in 1 repo~3.6k tokens
    Auto-check: notes
  • Auto Animate

    secondsky/claude-skills

    AutoAnimate (@formkit/auto-animate) zero-config animations for React.

    227 GitHub stars~2.9k tokensUpdated 9 days ago
    Auto-check passed
  • Base UI React

    secondsky/claude-skills

    MUI Base UI unstyled React components with Floating UI. An agent skill from secondsky/claude-skills.

    227 GitHub stars~1.9k tokensUpdated 9 days ago
    Auto-check passed
  • Cloudflare Images

    secondsky/claude-skills

    This skill should be used when the user asks to "upload images to Cloudflare", "implement direct creator upload", "configure image transformations", "optimize WebP/AVIF", "create image variants"…

    227 GitHub stars~3.6k tokensUpdated 9 days ago
    Auto-check: notes
  • Cloudflare Nextjs

    secondsky/claude-skills

    Deploy Next.js to Cloudflare Workers via the OpenNext adapter (@opennextjs/cloudflare).

    227 GitHub stars~5.3k tokensUpdated 9 days ago
    Auto-check: notes
  • Cloudflare Sandbox

    secondsky/claude-skills

    Cloudflare Sandboxes SDK for secure code execution in Linux containers at edge.

    227 GitHub stars~4.5k tokensUpdated 9 days ago
    Auto-check passed

Works with

Questions about Motion

What does Motion do?

Motion (Framer Motion) React animation library. An agent skill from secondsky/claude-skills. Motion is an agent skill from secondsky/claude-skills. Motion (Framer Motion) React animation library.

When should I use Motion?

Motion fits situations like: scroll animations; encountering bundle size; complex transitions; spring physics errors.

How do I install Motion in Claude Code?

Run `npx skills add secondsky/claude-skills --skill motion -a claude-code`. Or copy the skill folder (plugins/motion/skills/motion in secondsky/claude-skills) into .claude/skills/motion in your project. Claude Code loads it when a task matches its description.

How do I install Motion in Codex?

Run `npx skills add secondsky/claude-skills --skill motion -a codex`. Or copy the skill folder (plugins/motion/skills/motion in secondsky/claude-skills) into .agents/skills/motion in your project. Codex loads it when a task matches its description.

Can I use Motion in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add secondsky/claude-skills --skill motion -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/motion, .gemini/skills/motion, .github/skills/motion and .opencode/skills/motion in your project.

What does Motion need to run?

Going by SKILL.md and its folder, Motion needs a shell for the scripts in its folder and the command-line tools its instructions call (bun). Our summary lists: Node.js; A Bash shell.

Does Motion access the network?

SKILL.md names 2 domains. As links in the text: motion.dev and github.com. This is read from the text; nothing was executed.

Is Motion safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Motion use?

Motion is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Motion use?

About 4.1k tokens (SKILL.md is roughly 16k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 22k tokens, read only when the agent opens those files.

What are the alternatives to Motion?

Skills that share tags, products or a category with Motion: Animated React Component Libraries (Hainrixz/editor-pro-max, 261 stars), Motion Dev Animations (199-biotechnologies/motion-dev-animations-skill, 105 stars), Silk Design (bendrape1-byte/silk-design, 138 stars) and Goey Toast (anl331/goey-toast, 1.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Motion?

secondsky (a GitHub user) maintains it in secondsky/claude-skills, which has 227 GitHub stars. The repository holds 169 skills in this directory. The repository was last updated on September 28, 2026.

Source: secondsky/claude-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.