Skip to main content

Class: AnimationToggleCondition

Defined in: animations/types/AnimationCondition.ts:124

Class for toggle (boolean)-based animation conditions.

Implements

Constructors

Constructor

new AnimationToggleCondition(name, toggleValue): AnimationToggleCondition

Defined in: animations/types/AnimationCondition.ts:128

Parameters

name

string

toggleValue

boolean = true

Returns

AnimationToggleCondition

Properties

name

name: string

Defined in: animations/types/AnimationCondition.ts:125

Implementation of

AnimationCondition.name


toggleValue

toggleValue: boolean

Defined in: animations/types/AnimationCondition.ts:126

Methods

satisfies()

satisfies(inputs): boolean

Defined in: animations/types/AnimationCondition.ts:138

Method to check the condition based on the input value.

Parameters

inputs

AnimationInputs

Returns

boolean

Whether the condition is met based on the input value.

Implementation of

AnimationCondition.satisfies