Skip to content
easeweb
Search topics

Animations that ignore the reduced-motion setting

Animations started by scrolling or by opening a drawer, modal or accordion never check the reduced-motion setting, and nothing on the page turns them off.

WCAG 2.2
SC 2.3.3AAA· new in 2.1
Required by
Not required by Section 508 or EN 301 549
Broken
The accessibility problem illustrated: Cognitive:I turned motion off.
01

The problem

People with vestibular disorders get dizzy or sick when every scroll sends blocks of content sliding up the screen, and they have no way to stop it

02

Try it

Turn Reduce motion on, then scroll the page below

The switch stands in for the system setting. With it on, does anything still slide in as you scroll?

Simulate Reduce motion (system setting)

Broken Can you fix this?

BrokenSections that slide in, with no way to turn it off

About us

Scroll down to read our story.

How we started

Two friends, one small shop and a lot of seedlings.

What we grow

Houseplants raised in peat-free soil, close to home.

How we deliver

Plastic-free packaging, by bike within the city.

Who we work with

Local nurseries and a community garden.

Visit us

Open Thursday to Sunday, 10:00 to 18:00.

A recreated demo. The broken version is intentionally inaccessible.

03

The fix

Drop the motion, not the content, when people ask for less

Before
BrokenSections that slide in, with no way to turn it off
.reveal {  opacity: 0;  transform: translateY(80px);  transition: opacity 800ms ease, transform 800ms ease;}.reveal.in-view {  opacity: 1;  transform: none;}
What is wrong3 points
  • Every section moves for every visitor.
  • Nothing asks whether the visitor wants less motion.
  • The page has no setting of its own.
After

Honour the reduced-motion setting

/* Visible and still by default. */.reveal {  opacity: 1;}/* Movement only for people who haven't asked for less. */@media (prefers-reduced-motion: no-preference) {  .reveal:not(.in-view) {    opacity: 0;    transform: translateY(80px);  }  .reveal {    transition: opacity 800ms ease, transform 800ms ease;  }}
How it is fixed2 steps
  1. Make the sections visible and still by default.
  2. Move the hidden, lowered starting state and the slide inside no-preference. When the system asks for reduced motion, or a browser can't report the setting, the sections are simply there. Nothing has to be undone, so an animation added later can't be forgotten.

This fixes the Before and passes 2.3.3. The observer script can stay as it is. If the effect comes from a library, turn on its own reduced-motion option as well, because many libraries set transforms from JavaScript, where this CSS can't reach them.

Why this fix: Make motion opt-in

Implementation decisions
@keyframes slide-in {  from {    opacity: 0;    transform: translateY(80px);  }}@media (prefers-reduced-motion: no-preference) {  @supports (animation-timeline: view()) {    .reveal {      animation: slide-in linear both;      animation-timeline: view();      animation-range: entry 0% entry 100%;    }  }}

04

Verify the fix

4 checks.

Test with: Reduced motion, Keyboard, Mouse

0 of 4 checked

Record the OS, browser and assistive-technology versions, the build, the date, and the actual result of each step. Repeat after adding a new animation or updating an animation library.

How screen readers handle aria-pressed

Limits

This is a starting pattern, not a guarantee for every application. 2.3.3 is a Level AAA criterion, so many conformance targets do not require it, but the reduced-motion setting is a direct request from the visitor and is cheap to honour. Which movements make someone unwell varies from person to person; testing with people who use the setting tells you more than any rule.

This is a recreated teaching example, not a finding about a named client. The code is a starting pattern: test it in your own product. No completed assistive-technology test is claimed here.

EaseWeb service

Fixed it? Keep it from coming back.

I turn guides like this one into rules your coding agents follow and checks your CI runs. Then I retest by hand with a keyboard and screen readers, periodically.

See the service