AnimatorChain
Chains several Animator objects together.
Properties
-
resetOnPlay : Boolean
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.
Methods
-
advance()
Play the next animator.
-
listenTo(animator)
Internal: install an event listener on an animator's onComplete option to trigger the next 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.
-
setOptions(options)
Apply defaults.
-
this(animators, options = {}) : AnimatorChain
Construction od Animator Chain instance.
-
toggle()
If we have just play()'d, then call reverse(), and vice versa.