
Microinteraction Design Patterns: A Catalog
A working catalog of microinteractions — the trigger-feedback-state-change-loop model, hover and focus timing, the loading family, and honoring reduced motion.
TL;DR: A microinteraction is a small four-part unit — trigger, feedback, state change, and loop, a working adaptation of Dan Saffer's trigger, rules, feedback, and loops and modes — and every one of those parts earns its frames or it does not ship. Hover and focus feedback work well near the 200-millisecond mark, a practical midpoint rather than a rule. Loading patterns split into spinner, skeleton, progress bar, and optimistic UI depending on whether the duration is short, the shape is known, the progress is measurable, or the success rate is high. Treat honoring the prefers-reduced-motion query as a design commitment: it is one of the sufficient techniques W3C lists for WCAG 2.3.3, a Level AAA criterion under which motion animation triggered by interaction can be disabled, unless the animation is essential to the functionality or the information being conveyed. A microinteraction fails when it is decoration without a signal, not when there are too few of them.
A microinteraction is the smallest unit of feedback a product gives back to the user. Pressing a button is one. Hovering a card is one. Submitting a form, watching a row fade into a list, seeing a save indicator turn from spinner to check — all microinteractions. They are easy to add late in a build, easy to inherit from a component library, and easy to ship without ever asking what each one is meant to communicate.
The result is the failure mode this article exists to address. A product accumulates micromotion the way a closet accumulates clothes — without intention. Hover transitions slow down to 400 milliseconds because someone thought slower felt premium. Every save action triggers confetti because the team wanted to feel celebratory. A spinner replaces a list and the user cannot remember what was there a second ago. Each individual decision read as a polish; together they read as friction.
The frame that holds up against this drift is not new, and the rest of this article walks through it.
The trigger to feedback to state change to loop model
A useful model for what a microinteraction is comes from Dan Saffer's book Microinteractions — trigger, rules, feedback, and loops and modes. In outline, rules decide what happens, feedback communicates it, and loops and modes govern how long the interaction runs, whether it repeats, and any alternate mode it enters. The four steps below are a working adaptation of that model rather than Saffer's own wording. A trigger is whatever starts the interaction. A user click, a keystroke, a system event like a notification arriving. Feedback is the immediate visual or auditory confirmation that the trigger was received. State change is the actual thing happening — a value updating, a row appearing, a screen transitioning. The loop is what comes after — repetition of the same trigger, and, in this adaptation, recovery from error or undo of an action.
Each of the four steps deserves a question. What started this? What did the user just see that told them the system noticed? What changed because of it? What happens if they want to take it back or do it again? Motion that does not answer one of those questions is decoration.
The model is useful because it surfaces the failure mode directly. Hover effects without a state change are decoration. Confetti without an actual milestone is decoration. A spinner that runs after the operation has already finished is decoration. The fix in each case is the same — remove the animation or move it to the correct step.
The Material Design 3 motion guidance is a useful companion on duration and easing. Component libraries that treat motion as decoration rather than signal tend to over-animate.
Hover and focus feedback
Hover signals affordance — the cursor is over something the user can act on. Focus signals the same intent on a keyboard. The two must be equally visible, because keyboard users — power users who prefer it, and people with certain disabilities, such as motor impairments or blindness, who have no alternative — never see a hover-only affordance at all.
The duration sweet spot for hover and focus transitions sits around 200 milliseconds. Much faster than 100 milliseconds and the transition is effectively invisible — the user is not sure something happened. Slower than 300 milliseconds and a hover can start to feel laggy. The 200-millisecond figure is a practical midpoint, not a law: Nielsen Norman Group's animation-duration guidance puts most UI animation between 100 and 500 milliseconds, with simple feedback near 100 and noticeable drag setting in around 500.
The CSS for a calm, well-paced hover transition is short.
.button {
background: var(--color-surface);
transition: background 200ms ease-out, transform 150ms ease-out;
}
.button:hover,
.button:focus-visible {
background: var(--color-surface-hover);
transform: translateY(-1px);
}Two details matter. First, :focus-visible rather than plain :focus — the browser applies the modern selector by heuristic, so buttons show the indicator on keyboard focus but not on a mouse click, while text inputs still show it on click because they need ongoing attention (MDN). Second, the transition applies on both states, so keyboard users see the same micromotion as pointer users.
When the affordance is ambiguous — a card with a clickable surface, an icon that opens a menu — pair the hover state with a cursor change. cursor: pointer is small, free, and tells the user the surface is interactive before they have to test it by clicking.
Loading and waiting
Loading is its own family, large enough to spread across an adjacent article. The catalog view fits here; the duration boundaries in the table are rules of thumb for planning.
| Pattern | Duration profile | Shape known? | When to use |
|---|---|---|---|
| Spinner | Under 3 seconds | No | Short, unknown waits — a form submission round-trip |
| Skeleton | 0.5 to 3 seconds | Yes | List, card, or detail views — match the shape that will replace it |
| Progress bar | Over 3 seconds | Yes | File upload, multi-step process, batch operation |
| Optimistic UI | Near zero perceived | Yes | High-success-rate actions — save, like, add to cart |
Two operational rules tie the catalog together. A spinner should have a short delay before it appears — 200 milliseconds is a workable starting point — so fast responses never flash a spinner at all, which feels snappier than showing one and removing it within a frame. A skeleton should match the layout that will replace it; mismatched skeletons (three lines when the content turns out to be five) read as broken rather than loading.
Success feedback
Success deserves confirmation, not celebration. The default pattern is a single sentence — short, present-tense, naming what just happened — paired with the state change visible in context. "Saved." A row appearing in the list. The button settling from busy back to its idle state. That is enough for a routine productivity action.
Toast notifications fit non-disruptive confirmations — events that the user triggered and is already aware of. They sit briefly in a corner, dismiss themselves, and do not block the interface. As a rule of thumb, a toast stays for three to five seconds — long enough to read, short enough that it does not pile up.
Reserve large celebratory animations for milestone events. Finishing onboarding. Completing a streak. Hitting a meaningful threshold the user has been working toward. Confetti on every save action loses its meaning within a session — by, say, the tenth time, it reads as noise.
The pattern that fails most quietly is moving the user away from the change. A save that scrolls the page somewhere else, or hides the just-saved item behind a modal, takes away the contextual confirmation that the state change actually happened. Show the change where the user was looking.
Error feedback
Errors are the half of microinteraction design that is easiest to neglect and hardest on users when it goes wrong. The pattern catalog is short.
Inline error messages persist next to the field or component that failed. The error survives the next interaction so the user can read it, fix the input, and try again. A toast that disappears in three seconds is wrong for an error the user has to act on — they cannot read it and act on it in the same glance.
A shake animation on input rejection — the field moves left, right, left, and settles — works when used sparingly. It directs the eye to the problem area without depending on the user having read the error message yet. The animation should be short and small — for example, around 300 milliseconds total and no more than 10 pixels of horizontal travel. Used on every validation event, the shake becomes irritating; used only when the user has tried to submit, it works.
Two anti-patterns are worth naming directly. First, moving successful fields when one fails. If a long form had eight valid fields and one error, reflowing the layout to highlight the error field shifts everything else and forces the user to re-orient. Keep successful fields stable; surface the error in place. Second, errors that hide the recovery path. The fix should be one click or one keystroke away — not buried in a help link.
Honoring reduced motion
The prefers-reduced-motion: reduce query is the line between motion as a stylistic choice and motion as an accessibility concern. Users turn it on through operating system accessibility settings, because animated motion can cause them discomfort or distraction. The query is supported across every evergreen browser and has been Baseline since January 2020 (Widely available as of Nov 2026). MDN's prefers-reduced-motion reference covers the syntax.
WCAG 2.3.3 Animation from Interactions — a AAA success criterion in WCAG 2.2 — says that motion animation triggered by interaction can be disabled, unless the animation is essential to the functionality or the information being conveyed. The prefers-reduced-motion query lets a page do that for users who have already expressed the preference at the OS level. The browser reports the preference, and honoring it is the page's job: the media feature lets the page detect the preference, and the page's own CSS or script decides what to reduce.
The pattern is short.
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}Two things this snippet does. First, it neutralizes animation duration to effectively zero rather than removing animations outright — the state change still happens, the interpolation does not. Second, it overrides scroll-behavior so smooth scrolling falls back to instant. Both serve users who get motion sickness or vestibular discomfort from animated transitions.
What this blanket snippet also does, and what needs a deliberate exception, is flatten functional micromotion. A focus indicator that fades in over 100 milliseconds. A button press that compresses slightly when clicked. A loading spinner that rotates. The universal selector flattens all of them: the focus indicator and the pressed state still appear, but instantly, and a rotating spinner stops after a single near-zero iteration — so a loading state can lose its only signal that work is in progress. Scope the reset to decorative animation, or give functional motion a reduced-motion alternative such as a spinner that pulses in opacity instead of rotating. Functional signal stays; decorative motion goes. This functional/decorative split is a design rule, not WCAG's wording: the WCAG 2.2 understanding document for 2.3.3, which covers motion animation triggered by interaction, exempts only essential animation — animation that, if removed, would fundamentally change the information or functionality of the content, and whose information and functionality cannot be achieved in another way that would conform. WCAG's definition of motion animation also leaves out changes of color or opacity that do not change an element's perceived size, shape, or position.
Test reduced-motion handling in browser developer tools. Both Chrome and Safari let you toggle the reduce-motion media query without changing OS settings — in the Rendering panel in Chrome DevTools, and in the User Preference Overrides popover of the Elements tab in Safari's Web Inspector (Safari 16.4 and later). Walking the product with the toggle on surfaces decorative motion you forgot about.
Anti-patterns to avoid
A handful of recurring failure modes show up in product UI often enough to name them directly.
The first is animations longer than 500 milliseconds in productivity contexts. A 600-millisecond modal entrance feels graceful the first time and tedious the fiftieth. Productivity UI is used in repetition — the right animation duration is whatever the user can endure a hundred times without irritation. For routine product motion, a ceiling around 300 milliseconds is a reasonable working limit.
The second is auto-play hero animations that cannot be paused. Marketing pages still ship them; product UI almost never should. Even on marketing pages, WCAG 2.2.2 Pause, Stop, Hide, a Level A criterion, requires a mechanism for the user to pause, stop, or hide moving, blinking, or scrolling information that starts automatically, lasts more than five seconds, and is presented in parallel with other content, unless the movement, blinking, or scrolling is part of an activity where it is essential.
The third is hover effects that depend on movement to be readable. A card that only reveals its caption on hover is invisible to keyboard users, touch users, and any user who cannot or does not hover. The information should be readable without the interaction; the hover state should adjust emphasis, not reveal content.
The fourth is celebration for every save. Confetti, lottie animations, and full-screen success states for routine actions can train users to ignore success feedback. Reserve the large animations for the moments that actually matter — once or twice in a session, not once or twice per minute.
Phase 1 deliverables and acceptance criteria
Audit the existing microinteractions in one screen of the product. Walk through each visible animation and ask which of the four steps it belongs to. The ones that map cleanly to trigger, feedback, state change, or loop stay. The ones that do not map to any step are decoration — remove them or replace them with a clearer signal.
Add a prefers-reduced-motion media query if the codebase does not already have one, and walk the same screen with it enabled in browser developer tools. Anything still moving should be functional motion — focus indicators, button presses, loading spinners. Decorative motion that survives the toggle is a bug.
Check hover transitions for duration. Anything outside the 100-to-300-millisecond range deserves a second look. Hover states without a matching :focus-visible state are a high-impact accessibility fix.
Pick one loading state — the one users see most often — and ask whether the current pattern matches the duration and shape of the operation. Spinners for known shapes should usually be skeletons. Skeletons for measurable operations should usually be progress bars. Full-page spinners for single-widget updates should usually be per-widget loading.
Microinteractions earn their frames or they do not ship. The catalog above is not a checklist of features to add — it is the working vocabulary for deciding which animations carry signal and which are decoration. Products that feel calm and considered tend to ship fewer microinteractions than they could have, not more.