Jump to content
GreenSock

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

TweenMax.killAll()

TweenMax.killAll( complete:Boolean, tweens:Boolean, delayedCalls:Boolean, timelines:Boolean ) :

[static] Kills all tweens and/or delayedCalls/callbacks, and/or timelines, optionally forcing them to completion first.

Parameters

complete: Boolean

(default = false) — Determines whether or not the tweens/delayedCalls/timelines should be forced to completion before being killed.

tweens: Boolean

(default = true) — If true, all tweens will be killed (TweenLite and TweenMax instances)

delayedCalls: Boolean

(default = true) — If true, all delayedCalls will be killed. TimelineMax callbacks are treated the same as delayedCalls.

timelines: Boolean

(default = true) — If true, all timelines will be killed..

Details

Kills all tweens and/or delayedCalls/callbacks, and/or timelines, optionally forcing them to completion first. The various parameters provide a way to specify exactly which types you want to kill

//kill everything
TweenMax.killAll();
//kill only tweens, but not delayedCalls or timelines
TweenMax.killAll(false, true, false, false);
//kill only delayedCalls
TweenMax.killAll(false, false, true, false);
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.
×