TimelineMax js squence太早调用onComplete

时间:2018-08-02 09:24:21

标签: javascript callback timelinemax

正如标题所述,在完成整个序列之前,将调用onComplete回调。这是我的代码:

isPLaying = true;

const timeline = new TimelineMax({
 onComplete: () => {
  isPlaying = false;
 }
});

timeline
.to(displacementFilter.scale, 1, {x: 800, y: 600})
.to(slideImages[prevSliderIndex], .5, {alpha: 0})
.to(slideImages[sliderIndex], .5, {alpha: 1}, '-=1')
.to(displacementFilter.scale, 1, {x: 0, y: 0});

你能帮我吗?

0 个答案:

没有答案