Lesson 27 of 30
prefers-reduced-motion is the CSS mechanism. This lesson is the part before that: why motion is a genuine physical-safety concern, not just a preference, and where the risk is worst.
12 min read
Every option explains itself — why the right one is right, and why each wrong one is wrong. Miss one and it comes back later on a spaced-repetition schedule.
Question 1 of 3
A designer wants a notification badge to flash rapidly to grab attention. What's the accessibility concern, specifically?
Hints without spoilers, and a plain explanation of why a wrong answer was wrong — answered only from this lesson. Free account, no card.
Sign up freeWhat interviewers actually ask about this, and what a strong answer has to cover.
A strong answer covers
Likely follow-ups
The prefers-reduced-motion media query — covered elsewhere on this platform — is the how. This lesson is the why, and it's broader and more serious than "some users find animation distracting."
Motion on a screen can trigger two genuinely physical, not-hypothetical reactions:
Vestibular symptoms. Users with vestibular disorders (conditions affecting the inner-ear system that governs balance and spatial orientation) can experience real dizziness, nausea, or disorientation from large-scale visual motion — parallax scrolling, elements zooming or sliding across large distances, whole-page transitions. This isn't squeamishness; it's the same mechanism that causes motion sickness in a car, triggered by a screen instead.
Seizures. This is the more serious of the two. WCAG has a specific, numeric success criterion (2.3.1) governing content that flashes more than a defined threshold number of times per second, because rapid, high-contrast flashing can trigger seizures in users with photosensitive epilepsy. This is a documented, serious medical risk, not a theoretical edge case — it's the reason broadcast television has had flashing-content guidelines for decades, and the same physiological trigger applies on a phone or laptop screen.
Both risks point to the same practical stance: motion on the web isn't a purely aesthetic decision. It has a safety dimension, and the responsible default is to design conservatively, not to add restraint only after prefers-reduced-motion forces the issue.
Avoid rapid flashing entirely. There is almost never a real design reason to flash content at a rate that risks tripping WCAG 2.3.1 — a loading spinner, an attention-grabbing badge, or a notification pulse can all communicate urgency with a slow pulse or a static highlight instead of rapid flashing. If a design calls for something that flashes quickly, that's a signal to redesign it, not to check whether it's technically under the threshold.
/* Risky: fast, high-contrast flashing to grab attention */
.urgent-badge {
animation: flash 0.1s infinite; /* far too fast — flashing-hazard territory */
}
/* Safer: a slow pulse communicates the same urgency without the flash risk */
.urgent-badge {
animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.6; }
}
Prefer opacity/color transitions over large-scale movement for anything that can't be fully disabled. Even after prefers-reduced-motion: reduce is correctly respected, some interfaces still ship a small amount of motion that isn't gated behind the media query at all — a button's hover state, a toast notification's entrance. For exactly that residual motion, favor subtle opacity or color changes over transforms that move, scale, or zoom large areas of the screen. A button fading slightly on hover carries essentially none of the vestibular risk that a card zooming in from 50% scale does, even though both are technically "animation."
prefers-reduced-motion handles users who've explicitly opted in to reduced motion at the OS level — it does nothing for a user who hasn't touched that setting but still gets a seizure from flashing content, or the majority who haven't found or don't know about that setting."What accessibility risks does animation introduce beyond visual distraction?" is a real question that separates candidates who only know the prefers-reduced-motion media query syntax from those who understand why it exists — naming vestibular disorders and seizure risk specifically, unprompted, is the signal of someone who's internalized the actual stakes rather than memorized a CSS pattern.