Function: applyReducedMotion()
applyReducedMotion<
T>(animations):boolean
Defined in: src/a11y/reducedMotion.ts:109
Collapse the duration of each animation to the configured run time when
shouldReduceMotion is true. Does nothing otherwise.
duration is defined as read-only on the animation type, so it is
overridden through Object.defineProperty (the same mechanism the scene
uses for timestamped playback).
Type Parameters
T
T extends DurationBearing
Parameters
animations
readonly T[]
Returns
boolean
true when durations were collapsed, false when left unchanged.