kill
kill( ) : Timeline
Immediately kills the timeline and removes it from its parent timeline, stopping its animation.
Returns : Timeline
Self (for chaining)
Details
Immediately stops the animation, removing it from its parent timeline, and releasing it for garbage collection. Note: don't kill() an animation if you want to use it again later - you could pause() it instead if you want to reuse it.
// kill the timeline
tl.kill();
// set to null so the reference is removed
tl = null;