Skip to content

176 web animation techniques, each a live demo with plain settings and a ready-made prompt for your AI assistant. No dependencies, no build step.

docs: fix the Magnetic Button line and the Micro-Interactions duration rule

matin008de9f437c0
diff --git a/README.md b/README.md
index 7befea12..7094e3d3 100644
--- a/README.md
+++ b/README.md
@@ -130,7 +130,7 @@ All 129 techniques, each linked to its live demo.
- **[Click / Tap Ripple](animations/04-micro-interactions/click-ripple/)** — Ripple emanates from the exact click point — Material Design's tactile confirmation pattern.
- **[Focus Ring Animation](animations/04-micro-interactions/focus-ring/)** — Animated outline on keyboard Tab — :focus-visible ensures mouse users see no ring.
- **[Button Press Scale](animations/04-micro-interactions/button-press-scale/)** — Scales to 0.95 on press, springs back on release — asymmetric timing gives a tactile feel.
-- **[Magnetic Button](animations/04-micro-interactions/magnetic-button/)** — Button leans toward the cursor within a radius, label lagging for parallax — springs home on exit.
+- **[Magnetic Button](animations/04-micro-interactions/magnetic-button/)** — Button leans toward the cursor within a radius, its label drifting a little further for depth — springs home on exit.
- **[Toggle / Switch Slide](animations/04-micro-interactions/toggle-switch/)** — Pill slides left/right for on/off — smooth cubic-bezier gives a weighted, physical feel.
- **[Heart / Like Burst](animations/04-micro-interactions/heart-burst/)** — Tap pops and fills the heart while small hearts burst outward on canvas — Twitter-style like.
- **[Success Confetti](animations/04-micro-interactions/success-confetti/)** — Completing an action fires a canvas confetti burst — rotating rectangles with gravity and spin.
diff --git a/animations/04-micro-interactions/README.md b/animations/04-micro-interactions/README.md
index 73ef0f7c..c726742e 100644
--- a/animations/04-micro-interactions/README.md
+++ b/animations/04-micro-interactions/README.md
@@ -10,7 +10,7 @@ Short, user-triggered animations that provide feedback, confirm actions, and com
| [Click / Tap Ripple](click-ripple/) | Ripple from exact click point — Material Design's tactile confirmation |
| [Focus Ring Animation](focus-ring/) | Animated outline on keyboard Tab — :focus-visible for keyboard users only |
| [Button Press Scale](button-press-scale/) | Scales down on press, springs back on release — asymmetric timing |
-| [Magnetic Button](magnetic-button/) | Button leans toward the cursor within a radius, label lagging for parallax |
+| [Magnetic Button](magnetic-button/) | Button leans toward the cursor within a radius, its label drifting a little further for depth |
| [Toggle / Switch Slide](toggle-switch/) | Pill slides between on/off — smooth cubic-bezier for weighted feel |
| [Heart / Like Burst](heart-burst/) | Heart pops and fills while small hearts burst outward on canvas |
| [Success Confetti](success-confetti/) | Canvas confetti burst on completion — rotating rectangles with gravity |
@@ -38,7 +38,7 @@ Short, user-triggered animations that provide feedback, confirm actions, and com
## Key concepts
-**Duration discipline**: micro-interactions must complete in ≤200ms for hover states, ≤300ms for click responses, ≤400ms for loading indicators appearing. Longer durations shift perception from "feedback" to "animation."
+**Duration discipline**: Feedback should begin the moment the visitor acts and stay short: about 200ms or less for a hover change and under about 100ms for a press to show. A change that shows a new state, such as a ripple, a morph or a panel opening, usually takes 300–600ms; much longer and feedback starts to feel like decoration.
**Asymmetric timing**: press events animate faster than release events (80ms press / 180ms release for button scale). Opening events are slightly slower than closing (280ms open / 220ms close for drawers). The asymmetry matches physical intuition.