Skip to content

aninest root / Mode / createMode

createMode()

ts
function createMode<Animating>(anim, stack): Mode

Creates a mode. A mode is simply an ExtensionStack which can be easily toggled on and off.

Type Parameters

Animating extends RecursiveAnimatable<unknown>

Parameters

anim: Animation<Animating>

stack: ExtensionStack<Animating>

Returns

Mode

used to toggle the ExtensionStack.

Defined in

Animate/Mode.ts:31