我正在尝试对齐所有子补间的开始,希望它们立即开始,没有任何延迟,但似乎是按顺序完成的,一个 child 完成,然后第二个开始,第三个在第二个之后开始等等...不知道我在这里做错了什么?
var timeline = new TimelineLite({align:"start", stagger: 0, onComplete:Delegate.create(this, this.resetComplete), onCompleteParams:[id]});
for(var i=0; i<this.figures.length; i++) {
timeline.add(TweenLite.to(this.figures[i], 1, {left: this.margin + "px"}));
}
最佳答案
使用插入而不是添加...
timeline.insert(TweenLite.to(this.figures[i], .3, {left: this.margin + "px"}));
关于javascript - Greensock 的时间轴对齐子动画,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23773259/