startAndCancelPrevious
Stop the previous animation and start a new one.
Parameters
animatorRef
A reference to the previous animation. This will be changed to the new animation.
Stop the previous animation and start a new one.
A reference to the previous animation. This will be changed to the new animation.