Capítulo 43 de 411
clear() empties the timeline of all tweens, timelines, and callbacks, optionally leaving labels intact.
| Parameter | Type | Default | Description |
|---|---|---|---|
labels | Boolean | true | whether labels are cleared too |
Returns: self.
tl.clear(); // remove everything, including labels
tl.clear(false); // remove content but keep labels