跳过主要内容

removePause

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

移除通过其添加到时间轴的暂停。.addPause()方法快速转换任何坐标。

参数

  • 位置:[数值 | 标签]

    暂停应该被移除的时间点(或标签)。

返回值:self

self(便于链式调用)

细节

从时间轴中移除通过 Timeline 添加的特定位置上的暂停。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);
无噪 Logo
无噪文档
中文文档 · 复刻官网
查看所有 ↗