我想知道是否可以仅在前一个功能完成后才启动功能。我在下面列出了两个函数,我试图一个接一个地运行。谢谢!
var controller = $.superscrollorama();
controller.addTween('#graphicOne', TweenMax.from( $('#graphicOne'), .7, {css:{right:'1000px'}, ease:Back.easeOut}));
controller.addTween('#graphicTwo', TweenMax.from( $('#graphicTwo'), .7, {css:{left:'1000px'}, ease:Back.easeOut}));
controller.addTween('#graphicThree', TweenMax.from( $('#graphicThree'), .7, {css:{right:'1000px'}, ease:Back.easeOut}));
}
功能二:
function footerAnimation() {
TweenMax.from( $('#footerTextLight'), .7, {css:{opacity:'0'}})
}