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
used to toggle the ExtensionStack.