Loading states and feedback motion
Ask Claude for loading, state changes or page transitions and get CSS examples with timing guides.
See it work
You give it
Use interaction-design. I run a climbing gym in Boise and our day-pass booking page (React, Tailwind, Framer Motion) feels dead. When someone picks a time slot and taps "Book $22 pass", the button just sits there for 1 to 2 seconds while our API answers, then the page jumps to a plain "Booked" line. If the slot sold out in the meantime they get a browser alert() box. I want the button to show it's working, a clear success and a clear sold-out state, a small confirmation toast, and the slot list to update without jumping. Give me the timings and the code.
You get back
I haven't seen your code, so I've assumed a bookSlot(slotId) call that resolves with the booking on success and throws an error with code: "sold_out" when the slot is gone. Rename to match yours.
What each moment should say, and how long it takes
Moment · What the motion tells them · Duration · Easing
Tap "Book $22 pass" · "Got it" · 100 ms press, scale to 0.98 · spring
Waiting on the API · "Working, don't tap again" · 200 ms label swap, then the spinner loops until the answer · ease-out
Booked · "Done" · 200 ms swap to a green button with a check; toast slides up in 300 ms and stays 4 s · ease-out
Sold out · "Not your fault, pick another time" · 400 ms shake, button turns red, the slot grays out in the list · ease-out
Slot list changes · "Same list, one slot changed" · short spring (stiffness 500, damping 30) · spring
These follow one timing scale: 100 to 150 ms for press feedback, 200 to 300 ms for small state changes, 300 to 500 ms for the toast. Nothing goes past 500 ms, because booking a pass is a task, not a show. Entering things decelerate (cubic-bezier(0.16, 1, 0.3, 1)), leaving things accelerate.
First part of a run in Claude (Opus 5.5), Nov 2026
What it does
- Uses motion for feedback, not decoration.
- Builds loading states and skeleton screens.
- Gives timing and easing guides for each case.
What's inside
interaction-design/CREDITS.mdinteraction-design/LICENSEinteraction-design/SKILL.mdinteraction-design/references/animation-libraries.mdinteraction-design/references/microinteraction-patterns.mdinteraction-design/references/scroll-animations.md
How you use it
- Get the skill: one zip file. It comes with every paid plan.
- Add it to Claude. In Claude, open Customize (Plugins on newer screens), then Skills. Press +, then Create skill, then Upload a skill. In Claude Code, unzip it into ~/.claude/skills/ instead.
- Start a new chat and tell Claude what you need, the way the example above does. The skill takes it from there.
- Then ask for the work. Claude reaches for the skill when it fits, or name it: "use interaction-design".
Get this skill with a paid plan
The download comes with every paid plan, along with all 204 Claude skills and the rest of the AI toolkit. “Sites that don't look templated” in this folder is free, so you can try one first.