Determine if device has requested reduced motion.
true if motion should be reduced, false if not
Check if the device prefers reduced motion.
import { useIsMotionReduced } from "@trashpanda001/helpers/react"function Component() { const isReducedMotion = useIsMotionReduced() return <div>{isReducedMotion ? "reduced motion" : "normal motion"}</div>} Copy
import { useIsMotionReduced } from "@trashpanda001/helpers/react"function Component() { const isReducedMotion = useIsMotionReduced() return <div>{isReducedMotion ? "reduced motion" : "normal motion"}</div>}
Determine if device has requested reduced motion.