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 ​
| Parameter | Type |
|---|---|
fn | (reduced) => void |
query | MotionQuery | null |
Returns ​
() => void