Agent skill Web motion
Framer Motion
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/mindrally/skills/tree/main/framer-motion --skill framer-motion --agent claude-code --yesCheck this file in your project.claude/skills/framer-motion/SKILL.md
Other ways to install
Choose an assistant interactively
npx skills@latest add https://github.com/mindrally/skills/tree/main/framer-motion --skill framer-motionSelect 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+ project using the current motion package, and an existing filter group or navigation strip.
View operation manualWhat this skill helps with
- Design, implement or review motion on the web.
Good for
- Web motion and transitions
- Publisher
- Mindrally
- Control points
- motion/react · layoutId · LayoutGroup · aria-pressed
- Result
- A shared indicator that tracks the selected control and retains keyboard access.
- Skill name
framer-motion- Repository
mindrally/skills
Common pitfall
Avoid this prompt
Animate left, width, and margin on the nav controls while selection changes.
Those properties can change layout during animation and can move the targets users are trying to operate.
Use these steps
- Inspect source and behavior
- Apply the documented technique
- Verify the original interaction
Project walkthrough
Move one shared selection indicator between original navigation controls and verify its DOM state.
Move one shared selection indicator between original navigation controls and verify its DOM state.
Inspect source and behavior
Inspect source and behavior
Prompt · Step 1Use Mindrally’s Framer Motion skill on [my saved-note filters]. Check whether this project already uses framer-motion or the current motion package. Identify the real selected state, stable controls, decorative marker, and keyboard paths. Use the current package’s motion/react import when it is installed.Apply the documented technique
Apply the documented technique
Prompt · Step 2Place a decorative motion element with the same layoutId in whichever filter is selected. Use a distinct layoutId per widget or a scoped LayoutGroup when there is more than one group. Keep button dimensions and aria-pressed driven by state. Switch to an immediate marker placement for reduced motion.Verify the original interaction
Two groups update independently and the latest pressed filter owns the marker.
- Two groups update independently and the latest pressed filter owns the marker.
Prompt · Step 3Switch among filters rapidly, operate them by keyboard, and verify the marker ends under the last selected button. Render two independent groups to check marker isolation and test reduced motion at a narrow width. Compare the final selected state and button boxes in the browser.
Implementation lookup
Find the documented inputs and verification target for this walkthrough.
Check the control pointsInputs
- Command or reference
motion/react · layoutId · LayoutGroup · aria-pressed- Examples
- Two groups update independently and the latest pressed filter owns the marker.
FAQ
What if the existing app uses framer-motion?
Use the API supported by its installed release or follow the official upgrade guide for a deliberate migration. The example uses the current motion package.
Where are the instructions?
Open the installed SKILL.md and following references for the selected technique. The publisher link points to the revision verified for this handbook.