Class: Animation

html.Animation

Base class for animations.

new html.Animation () Deprecated : Use core.Action instead.

Properties:
Name Type Description
busy bool

[readonly] Whether the animation is currently running.

repeat bool

(default: false) Whether the animation repeats itself.

running running

(default: false) Whether the animation should be running.

Extends

Methods

start ()Promise

Starts the animation and returns a Promise.

Returns:
Type Description
Promise A Promise that resolves when the animation finished.

Events

html.Animation.event:begin

Is triggered when the animation begins.

html.Animation.event:finish

Is triggered when the animation finishes.