Skip to main content

remove

remove( value:[Tween | Timeline | Callback | Label] ) : self

Removes a tween, timeline, callback, or label (or array of them) from the timeline.

Parameters

  • value: [Tween | Timeline | Callback | Label]

    The tween, timeline, callback, or label that should be removed from the timeline (or an array of them)

Returns : self

self (makes chaining easier)

Details

Removes a tween, timeline, callback, or label (or array of them) from the timeline.

tl.remove(myTween);
tl.remove([myTween, mySubTimeline, "myLabel"]);