Agent skill Web motion
Make Interfaces Feel Better
Make interface behavior and feedback feel clear and intentional.
Install the skill
Run the command from your project root with Node.js and npm.
npx skills@latest add jakubkrehel/make-interfaces-feel-better --skill make-interfaces-feel-better --agent claude-code --yesCheck this file in your project.claude/skills/make-interfaces-feel-better/SKILL.md
Other ways to install
Choose an assistant interactively
npx skills@latest add jakubkrehel/make-interfaces-feel-better --skill make-interfaces-feel-betterSelect your assistant and choose the project installation scope.
Official instructions
The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. Use the existing toggle and check its dependency manifest. The CSS-only branch is suitable for an interface with no Motion dependency.
View operation manualWhat this skill helps with
- Make interface behavior and feedback feel clear and intentional.
Good for
- Interaction and feedback
- Publisher
- Jakub Krehel
- Controls
- opacity 0→1 · scale .25→1 · blur 4px→0 · cubic-bezier(.2, 0, 0, 1)
- Result
- The icon reverses from its current pose and the underlying button state updates immediately.
- Skill name
make-interfaces-feel-better- Repository
jakubkrehel/make-interfaces-feel-better
Common pitfall
Avoid this prompt
Run full keyframe sequences for both toggle directions and replace the active icon node on every click.
A transition can reverse smoothly with both icon layers mounted. The underlying toggle state stays authoritative.
Use these steps
- Inspect the project and source
- Apply the motion recipe
- Verify behavior and fallback
Project walkthrough
Give a toggle icon a short transition that can reverse without losing its control state.
Give a toggle icon a short transition that can reverse without losing its control state.
Inspect the project and source
Use the existing toggle and check its dependency manifest. The CSS-only branch is suitable for an interface with no Motion dependency.
Prompt · Step 1Use Make Interfaces Feel Better on [my panel toggle]. Read Contextual Icon Animations in animations.md. Find the existing button state, accessible label, icon slots, and Motion dependency if present. Keep a single actionable control.Apply the motion recipe
Give a toggle icon a short transition that can reverse without losing its control state.
Prompt · Step 2For a CSS-only project mount both decorative icons in the same slot, hide them from assistive technology, and transition opacity 0–1, scale 0.25–1 and blur 4px–0 with cubic-bezier(0.2, 0, 0, 1). Update the semantic state on activation and disable the visual transitions in reduced motion.Verify behavior and fallback
The icon reverses from its current pose and the underlying button state updates immediately.
- The icon reverses from its current pose and the underlying button state updates immediately.
Prompt · Step 3Toggle twice before the first visual transition completes. Verify the icon reverses and settles back in the starting state without excess queueing, the same button keeps focus, and the reported toggle state matches its final icon. Repeat with reduced motion.
Implementation lookup
Compare the implementation with the recipe and its expected outcome.
Inspect the implementation controlsVerify
- Command or reference
opacity 0→1 · scale .25→1 · blur 4px→0 · cubic-bezier(.2, 0, 0, 1)- Examples
- The icon reverses from its current pose and the underlying button state updates immediately.
FAQ
What should I prepare first?
Use the existing toggle and check its dependency manifest. The CSS-only branch is suitable for an interface with no Motion dependency.
How do I verify the result?
The icon reverses from its current pose and the underlying button state updates immediately.