usePrefersReducedMotion
Whether the reader asked to reduce motion.
True when the operating system reduce-motion setting is on, updated live. Built on useMediaQuery.
Usage
Examples
Read the preference
Turn autoplay off
API
1 option
1 return value
Accessibility
When set, skip autoplay, parallax, typing effects and smooth scrolling, or replace them with an instant change. global.css already shortens CSS transitions; use this hook for motion driven from JavaScript.
Notes
REDUCED_MOTION_QUERYis exported for CSS-in-JS or imperative checks.
Related
useMediaQueryTrack a CSS media query, SSR-safe.useArrowKeyNavArrow-key navigation with a roving tabindex for toolbars, lists and grids.useFocusTrapKeep Tab focus inside a custom overlay and restore it on close.useLiveAnnouncerPolite or assertive screen reader announcements for changes away from focus.