Constructor Summary
Public Constructor | ||
public |
constructor(element: HTMLElement, animations: Animation[]) Creates an animation controller. |
Method Summary
Public Methods | ||
public |
Starts the animation. |
|
public |
Starts the opposite animation. |
Inherited Summary
From class ViewController | ||
public static |
Creates a view controller directly for all members of a class. |
|
public static |
of(elem: string | Element): ViewController Returns a canolical VC of an element if it exists |
Public Constructors
public constructor(element: HTMLElement, animations: Animation[]) source
Creates an animation controller. Do note that some animations require elements to be in the DOM at the time otherwise their width/height calculations would be incorrect.