如何在时间轴中将我的第二个Greensock动画更改为提前1秒开始,例如填充在绘制线完成之前1秒开始。
这是我的代码:
TweenLite.set(".blue-line, .yellow-line", {visibility:"visible"});
var tl = new
TimelineMax();
tl.from(".blue-line, .yellow-line", 3, {drawSVG:0, ease:Power1.easeInOut})
.to(".blue-fill, .yellow-fill", 1, {css:{opacity:1}, ease:Linear.easeIn});
TweenLite.render();
答案 0 :(得分:2)
var tl = new TimelineMax();
tl.from(".blue-line, .yellow-line", 3, {drawSVG:0, ease:Power1.easeInOut})
tl.to(".blue-fill, .yellow-fill", 1, {css:{opacity:1}, ease:Linear.easeIn} , "-=1");
在“ to”方法的末尾添加“-= 1”,则交错将起作用。