Small motion for toggles and toasts
Ask Claude for a hover, toggle, toast or drawer and get short motion in Framer Motion or CSS.
See it work
You give it
Use micro-interaction. We sell Assam tea online from Guwahati, on a plain HTML site (no React). On each product card, tapping "Add to cart" gives no feedback; the cart number in the header just changes. I want a press effect, the button turning into a − 1 + stepper after the first tap, the cart count doing a small bump, and a toast saying "Added: 250 g Orthodox Gold, ₹480" that slides in and leaves after 3 seconds. Our markup: <button class="add">Add to cart</button> and <a class="cart">Cart <span class="count">0</span></a>. One HTML file I can open in a browser, please.
You get back
Since your site is plain HTML, this is all CSS transitions plus about 50 lines of plain JavaScript. No library, nothing to install.
The four moments and their timing
Moment · What moves · Time · Easing
Press "Add to cart" · Button shrinks to 96% and springs back · 60 ms in, 120 ms out · overshoot cubic-bezier(0.34, 1.56, 0.64, 1)
Button becomes − 1 + · "Add to cart" lifts 6 px and fades out; the stepper rises 6 px into the same spot · out 150 ms, in 200 ms · out ease-in, in ease-out cubic-bezier(0.16, 1, 0.3, 1)
Cart count changes · Badge grows to 130% and settles · 250 ms · ease-out
Toast · Rises 12 px and fades in, then sinks and fades out after 3 s · in 200 ms, out 150 ms · in ease-out, out ease-in
Everything sits in the 100 to 250 ms band, so it reads as an answer to the tap, not a show. Exits are faster than entrances: things arrive gracefully and leave promptly. Only opacity, translate and scale move, because those are cheap for the browser and never reflow the card.
The one decision that matters most: the button and the stepper are two faces of one box with a fixed height. The box never changes size, so the price, the title and the cards below it never jump. Your eye stays on the same spot while it changes.
First part of a run in Claude (Opus 5.5), Nov 2026
What it does
- Keeps click responses between 100 and 250ms.
- Animates only position, size and fade.
- Tones motion down when people ask for less.
What's inside
micro-interaction/CREDITS.mdmicro-interaction/LICENSEmicro-interaction/README.mdmicro-interaction/SKILL.mdmicro-interaction/references/css-recipes.mdmicro-interaction/references/framer-motion-recipes.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 micro-interaction".
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.