Skip to content

1681-engine / index / onReducedMotionChange

Function: onReducedMotionChange() ​

ts
function onReducedMotionChange(fn, query?): () => void;

Defined in: src/platform/reducedMotion.ts:31

Calls fn(reduced) when the system setting changes (not at once). Returns the unsubscribe.

Parameters ​

ParameterType
fn(reduced) => void
queryMotionQuery | null

Returns ​

() => void

Released under the MIT License.