Animation & Timing
usePrefersReducedMotion
usePrefersReducedMotion
A React hook that returns true if the user has enabled the "prefers-reduced-motion" setting in their system.
Usage
Arguments
This hook takes no arguments.
Return Value
| Type | Description |
|---|---|
| boolean | True if the user prefers reduced motion, false otherwise. |