Micro-Interactions in Web Design
A micro-interaction is a small, focused response to something a visitor does. A button that changes color when you hover, a heart that fills when you tap it, a checkmark after a form is sent. They are tiny, but together they make a site feel responsive and polished.
The parts of a micro-interaction
- Trigger: what starts it, such as a click, hover, or scroll.
- Rules: what happens in response.
- Feedback: what the user sees, hears, or feels.
- Loops and modes: whether it repeats or changes over time.
What they are good for
- Confirming an action: "Message sent" after a form submission.
- Showing status: a loading indicator while something works.
- Guiding attention: a gentle highlight on the next step.
- Preventing errors: a field turning green when valid or showing a clear message when not.
- Adding delight: a small animation that fits the brand.
Examples worth using
- Button states: hover, pressed, focus, and disabled should each look different. See button design best practices.
- Form feedback: inline validation that helps instead of scolding. See microcopy for buttons and forms.
- Toggles and accordions: smooth open and close transitions.
- Loading skeletons: gray placeholders that show where content will appear.
- Add to cart: a brief confirmation so people know it worked.
Design rules
- Keep them short. Most should last between about 150 and 400 milliseconds.
- Make them purposeful. If it does not help, it is decoration.
- Be consistent. Use the same timing and easing across the site.
- Do not block. The visitor should never wait for an animation to finish before continuing.
- Prefer simple properties. Changes to color, opacity, and transform are smooth and cheap. See animation performance.
Accessibility matters
- Keep keyboard focus clearly visible. See accessible focus styles.
- Respect reduced motion preferences and offer a quieter version. See reduced motion and animation accessibility.
- Do not use flashing effects.
- Make sure status messages are also available to screen readers, for example through live regions.
- Never rely on color alone to show a state.
Common mistakes
- Animations on everything, which makes the site feel busy
- Effects that delay the next step
- Hover-only features that do not work on touch screens
- Inconsistent speeds and styles
How to test
Use the site on a phone and a laptop. Ask a new user to complete a task and notice where they hesitate or look confused. Good micro-interactions are nearly invisible because they just feel right.
For the layout side of design, continue with grid systems for web design.