new tweeningTween(obj)
Tweening Tween is the central Tween manager.
It has a polymorphic behaviour that is trigerred by the type of the param content:
obj - array: obj represents a sequence of tweens, each an array in itself.
obj - object: obj is an configuration object whose attributes are parsed for values, eg.- concurrent.
It has a polymorphic behaviour that is trigerred by the type of the param content:
obj - array: obj represents a sequence of tweens, each an array in itself.
obj - object: obj is an configuration object whose attributes are parsed for values, eg.- concurrent.
Parameters:
Name | Type | Description |
---|---|---|
obj |
array | object | null | A container of Tween and callback instructions. |
- Source:
Methods
(private) add(obj)
The add method takes a tween animation array or a configuration object and adds it to the context tweenStack. see module:Context
Parameters:
Name | Type | Description |
---|---|---|
obj |
array | An array that contains instructions for a TWEEN animation. |
- Source:
(private) play()
The play method relies on the Context instance, gathering information from the tweenStack. See module:Context#
- Source:
(private) playConcurrent()
The play concurrent method consumes the tweenStack in a single iteration and doesnt wait for event loops to complete
- Source: