Skip to content

Documentation / ExtensionStack / mountStack

mountStack() ​

ts
function mountStack<Animating>(stack, anim): unsubscribe;

Defined in: Animate/ExtensionStack.ts:64

Mounts a stack of extensions to the animation. Returns a function that unmounts all the extensions in the stack.

Type Parameters ​

Animating ​

Animating extends Animatable<unknown>

Parameters ​

stack ​

ExtensionStack<Animating>

anim ​

Animation<Animating>

Returns ​

unsubscribe

A function that unmounts all the extensions in the stack.