AnimatorChain Class
Chains several Animator objects together
Item Index
Properties
Methods
this
animators
[options]
Construction od Animator Chain instance
Parameters:
-
animators
ArrayAn array of Animators to be chained.
-
[options]
Object optional{Object} An object of default options.
advance
()
Play the next animator
listenTo
animator
Internal: install an event listener on an animator's onComplete option to trigger the next animator
Parameters:
-
animator
Animator
play
()
Play each animator in turn
reverse
()
Play all animators backwards
seekTo
target
This function is provided for drop-in compatibility with Animator objects, but only accepts 0 and 1 as target values
Parameters:
-
target
Float
setOptions
options
Apply defaults
Parameters:
-
options
OptionsAn options object.
stop
()
Stops and disposes all objects
toggle
()
If we have just play()'d, then call reverse(), and vice versa
Properties
resetOnPlay
Unknown
By default, each call to AnimatorChain.play() calls jumpTo(0) of each animator before playing, which can cause flickering if you have multiple animators all targeting the same element. Set this to false to avoid this.