Skip to content

@remix-run/ui/animation · Function

View Source

prefersReducedMotion

Summary

Reads the current prefers-reduced-motion preference.

Signature

function prefersReducedMotion(): boolean

Returns

Whether reduced motion is requested, or false when matchMedia is unavailable.