Skip to main content

removePause

removePause( position:[Number | Label] ) : self

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

Parameters

  • position: [Number | Label]

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

Returns : self

self (makes chaining easier)

Details

Removes the pause from a specific position which was added to the timeline via addPause().

var tl = gsap.timeline();
tl.to(obj, { duration: 1, x: 100 });

//added at time of 1
tl.addPause();

//another animation
tl.to(obj, { duration: 1, opacity: 0 });

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