Agent skill Web motion
Motion Framer
Design, implement or review motion on the web.
Install the skill
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 --yesCheck 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-framerSelect 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 manualWhat 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- Repository
freshtechbro/claudedesignskills
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
- Find IDs, dismiss actions, the current package, and the focus behavior.
- Use a persistent AnimatePresence boundary and a short opacity exit.
- 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.
Trace notification identity and removal
Find IDs, dismiss actions, the current package, and the focus behavior.
Prompt · Step 1Use 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.Track the exiting item by key
Use a persistent AnimatePresence boundary and a short opacity exit.
Prompt · Step 2For 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.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 3Dismiss 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.