Maxim Mironjuk
-
May 06, 2025
An unfolding mega menu, a softly fading-in modal, a parallax-style scroll effect: for most users, x-transition animations like these inside an Alpine component feel elegant and modern. For users with vestibular disorders, the very same motion can trigger dizziness, nausea, or headaches. The prefers-reduced-motion CSS media query gives exactly these users a way to record their preference at the operating system level. This article covers how an Alpine component reads that preference reliably, disables x-transition animations conditionally, and why this is not a cosmetic nicety but a WCAG requirement.