Skill library

Agent skill Web motion

Motion Framer

Design, implement or review motion on the web.

  • Animation
  • Framer Motion
  • UI components

Install the skill

Installation method

Run the command from your project root with Node.js and npm.

npx skills@latest add https://github.com/freshtechbro/claudedesignskills/tree/main/plugins/bundles/core-3d-animation/skills/motion-framer --skill motion-framer --agent claude-code --yes

Check this file in your project.claude/skills/motion-framer/SKILL.md

Other ways to install
  • Choose an assistant interactively

    npx skills@latest add https://github.com/freshtechbro/claudedesignskills/tree/main/plugins/bundles/core-3d-animation/skills/motion-framer --skill motion-framer

    Select your assistant and choose the project installation scope.

    Official instructions

The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. A React 18.2+ app for current Motion for React and a notification list with stable IDs. Current Motion uses the motion package with motion/react imports. The bundled starter uses framer-motion v11 and React 18.

View operation manual

What this skill helps with

  • Design, implement or review motion on the web.

Good for

  • Web motion and transitions
Publisher
FreshTechBro
Compatibility
Current Motion uses the motion package with motion/react imports. The bundled starter uses framer-motion v11 and React 18.
Scenario
Animate dismissing a notification
Skill name
motion-framer

Common pitfall

Avoid this prompt

Wrap the conditional list in another conditional AnimatePresence and key rows by index.

Removing the presence boundary can prevent it from tracking exit, and index keys can associate the visual state with the wrong row.

Use these steps

  1. Find IDs, dismiss actions, the current package, and the focus behavior.
  2. Use a persistent AnimatePresence boundary and a short opacity exit.
  3. Verify two rapid dismissals, focus, and reduced motion.

Hands-on walkthrough

Keep exit animations tied to stable React keys and keep the notification controls responsive.

Keep exit animations tied to stable React keys and keep the notification controls responsive.

  1. Trace notification identity and removal

    Find IDs, dismiss actions, the current package, and the focus behavior.

    Prompt · Step 1
    Use Motion & Framer Motion on [notification list]. Read the lockfile to identify motion or framer-motion and the React version. Find stable notification IDs and how dismiss changes the list. Record keyboard behavior and focus when a row disappears, then select the smallest component boundary that can stay mounted.
  2. Track the exiting item by key

    Use a persistent AnimatePresence boundary and a short opacity exit.

    Prompt · Step 2
    For current Motion, import AnimatePresence and motion from motion/react. Keep AnimatePresence initial={false} mounted around the list items, and put each item directly inside as a motion.li keyed by its notification ID. Set a short opacity exit and existing focus handoff. The exiting row must stop accepting new interaction immediately. If using framer-motion v11, adapt the starter’s import path to the existing package consistently.
  3. Check dismissal and actual DOM removal

    Verify two rapid dismissals, focus, and reduced motion.

    • The intended rows exit, and remaining rows keep their identities.
    • The DOM cleans up and keyboard focus remains usable.
    Prompt · Step 3
    Dismiss two adjacent notifications in quick succession with the keyboard. Observe that the correct IDs exit, the DOM nodes are removed after their transitions, and focus lands at the expected next control. Verify initial content visibility and no unexpected movement with reduced motion. Report the package version and observations.

Workflow lookup

Use the documented calls with the version selected for the walkthrough.

Import the current React APIAPI
Command or reference
motion/react
Examples
Use this path with the motion package and React 18.2 or higher.
Skip entrance on initial renderAPI
Command or reference
AnimatePresence initial={false}
Examples
Keep the boundary mounted and make direct child keys stable.

FAQ

Why does exit never play?

Check that the presence boundary stays mounted and the item has a stable key and a defined exit. Use the import path for the existing package.

Where are the skill materials?

Open the project skill folder printed by the installer for SKILL.md and any bundled resources. The app’s runtime libraries are managed separately in its own package manifest.