正如标题所述,在完成整个序列之前,将调用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});
你能帮我吗?