AbstractAnimation
AbstractAnimation ⇐ Class
Kind: global abstract class
Extends: Class
Properties
| Name | Type | Description |
|---|---|---|
| isAnimation | string | Feature flag |
| delay | number | The delay of the animation |
| duration | number | The duration of the animation |
| easing | object | The animation variation |
| element | Class | The element to animate |
| finished | boolean | True if the animation is finished |
| from | number | The starting value |
| loopForEver | boolean | True if the animation should loop for ever, ie at the end restart from the begining |
| progress | number | Time in ms since the animation has begun |
| property | string | The name of the property to tween |
| ready | boolean | True if the animation is ready to be played |
| started | boolean | True if the animation started, otherwise false |
| theme | Theme | The application theme |
| to | number | The ending value |
| value | number | The current value of the property |
| origin | boolean | The flag to set origin value to from value on start even if delay exist |
| destroyOnFinish | boolean | 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 |
| promise | Promise.<void> | Promise resolve on animation end |
| _promiseResolve | function | Animation promise resolve |
- AbstractAnimation ⇐
Class
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