Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/446.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何将时间轴中的第二个Greensock动画更改为提前1秒开始_Javascript_Gsap - Fatal编程技术网

Javascript 如何将时间轴中的第二个Greensock动画更改为提前1秒开始

Javascript 如何将时间轴中的第二个Greensock动画更改为提前1秒开始,javascript,gsap,Javascript,Gsap,如何将时间轴中的第二个绿岩动画更改为提前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-

如何将时间轴中的第二个绿岩动画更改为提前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();
将“-=1”添加到“to”方法的末尾,则交错将起作用

将“-=1”添加到“to”方法的末尾,则交错将起作用


我试了很多次,但由于某种原因,它现在起作用了。谢谢。我试过很多次了,但不知什么原因,它现在起作用了。非常感谢。
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");