A Practical Guide to Website Animations
Small animations can guide attention and confirm that an action worked. Use them only when they help people use the page.
Give motion a job
Use animation to show what happened or where to look next. Skip it when it adds no useful information.
Why Animations Help
Useful animations can:
| Function | Example |
|---|---|
| Confirm action | Button press feedback, form submission |
| Guide attention | Tab indicator sliding, highlighted new content |
| Create continuity | Page transitions, loading states |
These small responses make an interface easier to follow. They can also make it feel faster, even when the underlying load time stays the same.
Where to Add Motion
1) Buttons and Links
A small response on hover or click confirms that the element is interactive.
Try this: Add a slight scale or color change. Keep the response brief.
2) Cards and Lists
Gentle lifts or fades help people see what’s clickable without adding clutter.
Try this: Add a slight lift, shadow change, or border highlight.
The Hover Test
Hover feedback can help pointer users identify interactive elements. Keep a clear focus state for keyboard users too.
3) Section Reveals
Content can fade in as the page scrolls. Keep the effect quick and make sure the content remains available when animation is disabled.
Try this: Fade from a small offset. Use only a short delay between list items.
4) Form Feedback
When a form is submitting or has an error, a small change in the button or label can lower confusion.
Try this: Show a loading state in the button, place error text near the field, and confirm successful submission.
5) Progress Moments
Show a spinner, checkmark, or success toast when something finishes. This reduces anxiety during waits.
A brief success state after signup confirms completion and gives the user a clear next step.
Animation Best Practices
Keep It Fast
- Duration: Start around 180ms, then test the interaction on the page
- Easing: Use ease-out for elements appearing, ease-in for elements leaving
- Rule of thumb: If you notice the animation, it’s probably too slow
Keep It Subtle
- Avoid big, bouncy effects (they feel cheap)
- Prefer transforms (scale, translate) over layout changes (width, height)
- A small amount of movement is usually enough
Keep It Accessible
Some visitors prefer reduced motion. The site must remain usable when motion is reduced or disabled.
Respect User Preferences
Excessive motion can affect people with vestibular disorders. Support the prefers-reduced-motion media query.
Quick Reference: Animation Timing
| Element | Duration | Easing |
|---|---|---|
| Button hover | 120ms | ease-out |
| Card lift | 180ms | ease-out |
| Modal open | 220ms | ease-out |
| Toast notification | 250ms | ease-out |
| Page transition | 250ms | ease-in-out |
Use Motion Only When It Helps
The motion test
If an animation does not make a task easier to understand, remove it.
Pagesmith gives you motion controls and sensible starting points. Keep the effects that support the page and remove the rest.