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.