CSS reduced motion helps developers respect users who prefer less animation.
By using the prefers-reduced-motion media query, you can reduce
motion-heavy effects, improve accessibility, and create a safer user experience.
What Is CSS Reduced Motion?
CSS reduced motion is an accessibility technique that detects when a user has enabled
a system preference to reduce motion. This preference is commonly used by people who
experience dizziness, nausea, distraction, or discomfort from animations.
The main CSS feature used for this is the prefers-reduced-motion media query.
You can also define normal motion styles first, then override them for users who prefer
reduced motion.
Safe Global Reduced Motion Pattern
A global reduced motion rule is useful for reducing most animations and transitions.
However, avoid breaking important UI state changes. Use this pattern carefully.
Smooth scrolling can be uncomfortable for some users because it creates visible page movement.
Disable smooth scrolling when reduced motion is enabled.
html {
scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
}
}
Reduced Motion for Parallax Effects
Parallax effects can be visually impressive, but they are one of the most common motion patterns
that can cause discomfort.
Not all animation is bad. Small, meaningful animations can help users understand state changes.
The goal is to reduce unnecessary movement and provide calmer alternatives.
Animation Type
Accessibility Risk
Better Pattern
Opacity fade
Usually lower risk.
Keep short and subtle.
Large movement
Higher risk.
Replace with fade or instant change.
Rotation/spin
Higher risk if continuous.
Use static icon or short single animation.
Scale/zoom
Can feel intense.
Use smaller scale or remove transform.
Progress indicator
Can distract if infinite.
Use text status or minimal motion.
Reduced Motion and Accessibility
Reduced motion improves accessibility for users with motion sensitivity, vestibular disorders,
migraines, attention challenges, and cognitive overload. It also helps users who simply prefer
calm interfaces.
Respect user system preferences.
Avoid motion that moves large areas of the screen.
Avoid infinite animations unless essential.
Give users control over moving content.
Use static alternatives for decorative motion.
Does Reduced Motion Help SEO?
Reduced motion does not directly rank a page, but it improves accessibility, usability,
page quality, and user experience. These improvements can support better engagement
and a more professional website.
Improves inclusive user experience.
Reduces distraction during reading.
Improves form completion and task flow.
Supports better accessibility audits.
Helps create user-friendly interfaces across devices.
How to Test Reduced Motion
Enable reduced motion in your operating system accessibility settings.
Reload the page and check animations, transitions, and scrolling.
Test menus, dialogs, carousels, accordions, and page transitions.
Check that important UI feedback still works.
Use browser DevTools to emulate prefers-reduced-motion.
Test keyboard navigation and focus states after reducing animations.
Tools for Testing Reduced Motion
Tool
Use
Chrome DevTools
Emulate prefers-reduced-motion and inspect animation CSS.
Firefox DevTools
Test media queries and inspect animation behavior.
Lighthouse
Checks accessibility and best practices.
axe DevTools
Finds common accessibility issues.
Manual Testing
Checks real user experience with reduced motion enabled.
Common Reduced Motion Mistakes
Ignoring the prefers-reduced-motion media query.
Disabling animations in a way that breaks UI state changes.
Using infinite animations for decorative elements.
Keeping parallax effects enabled for all users.
Using smooth scrolling even when reduced motion is requested.
Auto-playing carousels without user control.
Testing only default motion and not reduced motion mode.
CSS Reduced Motion Best Practices
Use @media (prefers-reduced-motion: reduce).
Reduce large movement, zooming, spinning, parallax, and smooth scrolling.
Prefer opacity changes over large transform animations.
Pause or disable autoplaying carousels.
Keep important state changes understandable.
Use CSS variables for animation durations and movement distance.
Test with reduced motion enabled before publishing.
Use animation only when it improves understanding, not just decoration.
Key Takeaways
Reduced motion respects users who prefer less animation.
The prefers-reduced-motion media query is the main CSS tool for reduced motion.
Large movement, parallax, smooth scrolling, and infinite animations should be reduced.
Reduced motion improves accessibility, usability, comfort, and page quality.
Always test normal motion and reduced motion modes before publishing.
Pro Tip
Instead of removing every animation blindly, reduce large motion first:
parallax, sliding panels, zoom effects, infinite spinners, and smooth scrolling.
You now understand CSS reduced motion, prefers-reduced-motion,
accessible animations, motion sensitivity, smooth scrolling, parallax alternatives,
testing tools, SEO benefits, best practices, and common mistakes.