Skip to content

wanim

wanim<T>(SceneConstructor, containerInit?): object

Defined in: wanim.ts:12

Starts running the specified WanimScene in the specified container.

Type Parameters

T

T extends WanimScene

Parameters

SceneConstructor

() => T

containerInit?

ContainerInit

An ID or an HTMLElement. If a nullish value is passed, this creates a fixed fullscreen container.

Returns

object

An instance of controls to manage the animation.

destroy()

destroy(): void

Returns

void