In short
- A micro-interaction is a small, single-purpose response to something the visitor does, such as a button changing when pressed.
- Their main job is feedback: confirming that the site noticed the action and showing what happened.
- Most can be built with a few lines of CSS: hover and focus states, transitions and simple loading indicators.
- They should be quick, usually between a tenth and a third of a second, and never make the visitor wait.
- Hover does not exist on touch screens, so no information should depend on it.
Press a button and it dips slightly. Type an invalid email address and the field tells you before you send the form. Add something to a basket and the basket icon gives a small bounce. None of these is a feature anyone would list, yet a website without them feels inert, and you find yourself clicking twice because you are not sure the first click worked.
These moments are called micro-interactions. They are the smallest unit of interaction design, and they do a surprising amount to make a website feel responsive, considered and trustworthy.
What Is a Micro-interaction?
The term was popularised by the designer Dan Saffer, who described a micro-interaction as a contained moment built around a single task. His model has four parts, and it remains a useful way to think about them.
| Part | What it is | Example: a like button |
|---|---|---|
| Trigger | What starts it: an action by the visitor, or a change in the system | The visitor taps the heart |
| Rules | What happens as a result | The post is added to their likes |
| Feedback | How the visitor knows it happened | The heart fills with colour and gives a small pulse |
| Loops and modes | What happens over time or on repetition | Tapping again removes the like |
On a business website the examples are more ordinary: buttons, links, form fields, menus, sliders, toggles, loading indicators and confirmation messages.
Why Small Responses Matter
- Feedback. People need to know that their action registered. Without a response, they repeat it or assume the site is broken.
- Status. A spinner, a progress bar or a changing label shows that something is happening and roughly how long it will take.
- Guidance. A field that gently indicates the expected format prevents an error instead of reporting one.
- Affordance. A pointer that changes, or a button that lifts on hover, shows what can be clicked.
- Character. Small touches of personality make a brand memorable, provided they never slow the task down.
The effect on trust is real. A site that responds crisply to every action feels well made, and visitors extend that impression to the business behind it. Missing feedback is also one of the quickest things to put right in a website redesign.
Hover and Focus States
The most common micro-interaction is the change in an element when the pointer passes over it or when it receives keyboard focus. Every interactive element should have both.
.card {
transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
@media (hover: hover) {
.card:hover {
transform: translateY(-4px);
box-shadow: 0 12px 28px rgb(0 0 0 / 0.14);
}
}
.card a:focus-visible {
outline: 3px solid #1b4ed8;
outline-offset: 3px;
}The hover: hover media query matters. On a touch screen there is no hover, and a hover style can stick after a tap, leaving a card looking permanently raised. Wrapping hover effects in the query avoids that. The focus-visible selector shows the outline when someone is using a keyboard, and not when they click with a mouse.
Buttons That Respond
.button {
transition: background-color 0.15s ease-out, transform 0.1s ease-out;
}
.button:hover {
background-color: #095247;
}
.button:active {
transform: scale(0.97);
}
.button[aria-busy="true"] {
cursor: progress;
opacity: 0.75;
}A pressed state is the cheapest reassurance a site can give. For actions that take time, such as sending a form, change the label as well: Send enquiry becomes Sending, and then Sent. The visitor is never left wondering. Our guide to call-to-action buttons covers the rest of button design.
Forms, Toggles and Status
- Inline validation. Confirm a correct entry, or explain a problem, as the visitor leaves each field.
- Password visibility. A show and hide control that prevents mistyped passwords.
- Character counts. A counter that warns before a limit is reached, not after.
- Toggles and checkboxes. A clear visual change, with a label that says what is switched on.
- Copy to clipboard. The button's label changes to Copied for a moment.
- Saving and sending. A brief confirmation that the action succeeded, announced to screen readers as well as shown.
<button type="submit" aria-busy="false">Send enquiry</button>
<p role="status" aria-live="polite"></p>Feedback that is only visual leaves some visitors out. A live region like this makes a confirmation available to people who cannot see the animation. Our guide to website form design goes into validation in detail.
Loading and Waiting
Waiting feels shorter when something is visibly happening. The right indicator depends on how long the wait is.
| Wait | What to show |
|---|---|
| Under a tenth of a second | Nothing. It feels instant. |
| Up to about a second | A change of state on the control itself, such as a busy button |
| One to a few seconds | A spinner, or a skeleton screen that outlines the content to come |
| Longer | A progress bar, or a message that says what is happening and how far it has got |
A skeleton screen shows grey placeholder shapes where text and images will appear. It reassures people that the page is loading and stops the layout jumping when the content arrives. It is worth using where content is fetched after the page loads, as in dashboards and search results. An ordinary page of text should simply be there.
Timing and Restraint
| Kind of change | Typical duration |
|---|---|
| Colour, opacity and small changes of state | 0.1 to 0.2 seconds |
| Elements moving a short distance, and menus opening | 0.2 to 0.3 seconds |
| Larger panels and dialogs | 0.3 to 0.4 seconds |
| Anything longer | Rarely justified in an interface |
- Use ease-out for things entering and ease-in for things leaving.
- Animate
transformandopacity, which browsers handle efficiently. - Make repeated actions faster, not more elaborate. A flourish that is charming once is irritating the tenth time.
- Respect
prefers-reduced-motionby removing the movement and keeping the change of state.
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}Larger movement tied to scrolling is a different subject, covered in our guides to scroll animations and parallax scrolling.
Common Micro-interaction Mistakes
- No feedback at all. Buttons that do not change, and forms that do not confirm.
- Animation that makes people wait. A menu that takes a second to open, every time.
- Meaning hidden in hover. Tooltips and controls that never appear on a phone.
- Removing focus outlines. Keyboard users lose their place on the page.
- Delight over function. Confetti on a routine action, or sound that nobody asked for.
- Inconsistency. The same kind of button behaving differently on different pages.
- Visual-only feedback. Confirmations that a screen reader never announces.
Putting It Into Practice
Reading about a technique is the easy part. Applying it to a real business, with real content and a launch date, takes judgement about what to use and what to leave out. DigitalPod is a UK-based design and web development studio that designs every site from a blank page and builds it by hand, so a technique is used because it helps the business and not because a template came with it. If you would like a website designer to handle it for you, startup website design is what we specialise in, websites start from £2,400 and our website redesign service brings an older site up to date.
Frequently Asked Questions
What is a micro-interaction?
A micro-interaction is a small, contained response to a single action or event on a website or app. Examples include a button changing when pressed, a form field confirming a valid entry, a toggle switching and a brief message confirming that something was saved.
Why are micro-interactions important?
They give feedback. They confirm that an action was noticed, show what is happening and prevent mistakes. A site that responds clearly to every click and tap feels faster and more reliable, and that impression carries over to the business.
What are some examples of micro-interactions?
Hover and focus states on links and buttons, a pressed state on a button, inline form validation, a loading spinner, a copied confirmation, a like button filling with colour, a pull-to-refresh gesture and a progress bar on a file upload.
How long should a micro-interaction animation last?
Most should take between about a tenth and a third of a second. Changes of colour and state can be at the quicker end, and elements that move a short distance at the slower end. Anything much longer starts to feel like waiting.
Do micro-interactions need JavaScript?
Many do not. Hover, focus and pressed states, transitions and simple loading animations are pure CSS. JavaScript is needed when the interaction depends on logic or data, such as validating a field, sending a form or updating a count.