UI kit reference
motion/reduced
import { … } from 'zidane-ui'ui/src/motion/reduced.ts
Functions#
useMotionLevelFunction#
Returns the current MotionLevel, read from html[data-motion]. It updates when the
attribute changes and is full when the attribute is missing or on the server.
function useMotionLevel(): MotionLevelReturns
useReducedMotionFunction#
True for off and reduced: skip decorative JS-driven animation.
function useReducedMotion(): booleanReturns
booleanTypes#
MotionLevelType#
How much the UI animates: off is instant, reduced keeps only fades, full plays all motion.
type MotionLevel = 'off' | 'reduced' | 'full'