Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

TimelineMax

.clear()

.clear( labels:Boolean ) : *

Empties the timeline of all tweens, timelines, and callbacks (and optionally labels too).

Parameters

labels: Boolean

(default = true) — If true (the default), labels will be cleared too.

 

Returns : *

self (makes chaining easier)

Details

Empties the timeline of all tweens, timelines, and callbacks (and optionally labels too). Event callbacks (like onComplete, onUpdate, onStart, etc.) are not removed. If you need to remove event callbacks, use the eventCallback() method and set them to null like myTimeline.eventCallback("onComplete", null);

Copyright 2017, GreenSock. All rights reserved. This work is subject to theterms of useor for Club GreenSock members, the software agreement that was issued with the membership.
×