Skip to main content

Function: prefersReducedMotion()

prefersReducedMotion(): boolean

Defined in: src/a11y/reducedMotion.ts:36

Whether the operating system asks for reduced motion.

Returns false in any environment without a working window.matchMedia, and never throws.

Returns​

boolean