AbstractAnimation

AbstractAnimation ⇐ Class

Kind: global abstract class
Extends: Class
Properties

NameTypeDescription
isAnimationstring

Feature flag

delaynumber

The delay of the animation

durationnumber

The duration of the animation

easingobject

The animation variation

elementClass

The element to animate

finishedboolean

True if the animation is finished

fromnumber

The starting value

loopForEverboolean

True if the animation should loop for ever, ie at the end restart from the begining

progressnumber

Time in ms since the animation has begun

propertystring

The name of the property to tween

readyboolean

True if the animation is ready to be played

startedboolean

True if the animation started, otherwise false

themeTheme

The application theme

tonumber

The ending value

valuenumber

The current value of the property

originboolean

The flag to set origin value to from value on start even if delay exist

destroyOnFinishboolean

The animation is destroyed as soon as it is finished you should let it to true because it reduces memory leaks problems, unless you know exactly what you ar doing

promisePromise.<void>

Promise resolve on animation end

_promiseResolvefunction

Animation promise resolve

AbstractAnimation()

A model of an animation

start() ⇒ AbstractAnimation

Start the animation

Kind: instance method of AbstractAnimation
Returns: AbstractAnimation - this

stop()

Stop the animation (should cancel it).

Kind: instance method of AbstractAnimation

then() ⇒ Promise

Allow processing after animation has ended

Kind: instance method of AbstractAnimation

_start()

Implementation to start the animation

Kind: instance abstract method of AbstractAnimation

_stop()

Implementation to stop/cancel the animation

Kind: instance abstract method of AbstractAnimation