loading code fetching the highlighted snippet
useReducedMotion() returns a reactive store backed by the (prefers-reduced-motion: reduce) media query. Gate any non-essential animation — and add an in-page override so users can opt in/out independently.
prefers-reduced-motion: reduce to verify the disabled path. Same pattern
works in Firefox / Safari accessibility panels.OS preference: no-preference
Tip: Chrome DevTools → Rendering → emulate prefers-reduced-motion: reduce to test the OS path.