@trashpanda001/helpers
    Preparing search index...

    Function useIsMotionReduced

    • Determine if device has requested reduced motion.

      Returns boolean

      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>
      }