Skip to content

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 ​

ParameterType
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 ​

ParameterType
fn() => void

Returns ​

void


removeEventListener()? ​

ts
optional removeEventListener(type, fn): void;

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

Parameters ​

ParameterType
type"change"
fn() => void

Returns ​

void


removeListener()? ​

ts
optional removeListener(fn): void;

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

Parameters ​

ParameterType
fn() => void

Returns ​

void

Released under the MIT License.