tezvyn:

Designing for Reduced Motion

Source: developer.mozilla.orgadvanced

Treat UI animations as an enhancement some users must disable for comfort. The `prefers-reduced-motion` media query lets you respect system-level accessibility settings, preventing vestibular triggers.

Treat UI animations as a progressive enhancement, not a default. Some users experience physical discomfort from UI motion, and the `prefers-reduced-motion` CSS media query detects their OS-level setting, allowing you to provide a safer experience. This applies to any non-essential motion, from parallax scrolling to scaling modals. The footgun is simply disabling animations, which can break context. Instead, replace jarring motion (like zooms) with gentler alternatives like cross-fades.

Read the original → developer.mozilla.org

Get five bites like this every day.

Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.

Designing for Reduced Motion · Tezvyn