Topics
Recent articles

Frontend & Web

Accessible UI Microinteractions and Reduced Motion

Learn how to use motion to clarify interface states while respecting user accessibility preferences and reduced-motion settings.

Table of Contents1 sections
Group of developers working together on a computer programming project indoors.
Stock illustration for “Use Motion to Clarify State, and Respect Reduced-Motion Settings”.

Animations must clarify interface states without causing user discomfort or task delays.

Quick solution:

@media (prefers-reduced-motion: reduce) {
  .element { animation: none; }
}

Defining Functional Motion

Microinteractions should serve a specific purpose, such as confirming a form submission, indicating a loading state, or showing that a menu has expanded. When designing these, consider the job each motion performs. If the motion does not provide essential information that a static state cannot convey, it may be unnecessary. By focusing on utility, you avoid the common pitfall of using animation as a default layer of polish, which often obscures content or distracts from the primary task. When you design visual hierarchy for tasks, you create a structure where motion acts as a secondary guide rather than a primary distraction. If you are building complex components, ensure you Align Animated Tab Indicators in Scrollable Rails to maintain consistent behavior across different viewports.

Respecting User Preferences

Users may set a system-wide preference to minimize motion due to vestibular disorders or other accessibility needs. You can detect this preference using the prefers-reduced-motion media query. When this preference is active, your interface should provide a clear, static representation of the state change. For example, instead of a sliding transition, a simple fade or an immediate state change is often sufficient to communicate that an action has occurred.

Compliance and Interaction Standards

According to WCAG 2.2 Animation from Interactions, motion triggered by user interaction should not be the sole method of conveying information. If an animation is used to indicate a state change, ensure that the information is also available through other means, such as text labels, color changes, or focus indicators. Libraries like Motion can help manage these transitions, but developers must remain responsible for wrapping these animations in conditional logic that respects user settings.

Implementation Checklist

Continue Exploring

You Might Also Like

View all articles
Align Animated Tab Indicators in Scrollable Rails
2 min read

Align Animated Tab Indicators in Scrollable Rails

Learn how to accurately calculate tab indicator positions within a horizontally scrollable navigation rail by managing coordinate spaces and respecting user motion preferences.