new animationAnim(obj)
Animations Anim is the central action strip manager.
It's behavior is polymorphic and dictated by the type of argument
obj - string: obj represents a single animation contained in the current scene, it gets added to the tweenStack and play is invoked.
obj - array: obj contains a list of animation names to play, it can also contain callback functions as array items.
obj - object: obj contains configuration parameters as properties, eg 'concurrent':true
It's behavior is polymorphic and dictated by the type of argument
obj - string: obj represents a single animation contained in the current scene, it gets added to the tweenStack and play is invoked.
obj - array: obj contains a list of animation names to play, it can also contain callback functions as array items.
obj - object: obj contains configuration parameters as properties, eg 'concurrent':true
Parameters:
Name | Type | Description |
---|---|---|
obj |
string | array | object | A container of animation and callback instructions. |
- Source:
Members
(private, static) animStack
The current animation stack from config.animStack
- Source:
(private, static) context
Declaration of context.get.config
- Source:
Methods
(private) add(animationName)
add animation to animation stack.
Parameters:
Name | Type | Description |
---|---|---|
animationName |
string | the name of an animation already existing within the scene. |
- Source:
(private) play()
play an animation from the animation stack
- Source: