1681-engine / index / MotionQuery
Interface: MotionQuery ​
Defined in: src/platform/reducedMotion.ts:12
The slice of MediaQueryList used here; tests pass their own.
Properties ​
matches ​
ts
readonly matches: boolean;Defined in: src/platform/reducedMotion.ts:13
Methods ​
addEventListener()? ​
ts
optional addEventListener(type, fn): void;Defined in: src/platform/reducedMotion.ts:14
Parameters ​
| Parameter | Type |
|---|---|
type | "change" |
fn | () => void |
Returns ​
void
addListener()? ​
ts
optional addListener(fn): void;Defined in: src/platform/reducedMotion.ts:17
Safari before 14 only has the old names.
Parameters ​
| Parameter | Type |
|---|---|
fn | () => void |
Returns ​
void
removeEventListener()? ​
ts
optional removeEventListener(type, fn): void;Defined in: src/platform/reducedMotion.ts:15
Parameters ​
| Parameter | Type |
|---|---|
type | "change" |
fn | () => void |
Returns ​
void
removeListener()? ​
ts
optional removeListener(fn): void;Defined in: src/platform/reducedMotion.ts:18
Parameters ​
| Parameter | Type |
|---|---|
fn | () => void |
Returns ​
void