Reduce Motion

Add prefers-reduced-motion support. Wraps existing animations in a media query and provides static fallbacks.

dragoon0x Updated 13 repo stars

File contents

/reduce-motion — Reduced Motion Support

For every animation and transition in the code:

  1. Wrap in @media (prefers-reduced-motion: no-preference) { }
  2. Add @media (prefers-reduced-motion: reduce) with:
    • animation-duration: 0.01ms
    • transition-duration: 0.01ms
    • Preserve final states (don't hide content that animates in)
  3. Test that the page is fully usable without any motion

dragoon0x/optik commit b2984b01c2

Frequently asked questions

npx get-skill add dragoon0x/reduce-motion-3