恢复到原始状态GSAP - TweenlineMax
问题描述:
我正在通过GSAP文档查找,无法找到一种方法将动画恢复为原始状态,而无需经历整个反转周期。基本上我想补间一个元素,结束后,我希望它跳回到没有动画的原始状态。如何做到这一点有什么好的做法?恢复到原始状态GSAP - TweenlineMax
答
当然,也有吨的方法:
timeline.seek(0).pause(); //jumps to the 0 position and then pauses
timeline.pause(0); //shortcut for the line above
timeline.progress(0).pause();
timeline.totalProgress(0).pause();
timeline.restart(0).pause();
(任何单一线以上即可)以上
和“时间表”是你的TimelineMax实例的引用。 (你说的是“TweenlineMax”,但我相信你的意思是TimelineMax)。
快乐补间!