Jump to content
GreenSock

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

TimelineMax

.removePause()

.removePause( position:* ) : *

Removes pauses that were added to a timeline via TimelineMax.addPause().

Parameters

position: *

the time (or label) where the pause should be removed from.

Returns : *

self (makes chaining easier).

Details

Removes pauses that were added to a timeline via TimelineMax.addPause().


var tl = new TimelineMax();
//insert a pause at exactly 2 seconds into the timeline
tl.to(obj, 1, {x:100})
.addPause() //added at time of 1
.to(obj, 1, {opacity:0});

//later on remove the pause
tl.removePause(1);

*note removePause() is only available in TimelineMax.

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.
×