StaggerTo动画

时间:2017-03-27 06:16:01

标签: javascript gsap tweenlite

我尝试使用staggerTo在视频横幅上进行级联动画,但它无法正常工作。我希望横幅上的级联动画展开点击。我的代码是

function FullscreenClick(e){
    ADTECH.expand();
    ADTECH.registerVideoPlayer(videoBGPlayer , 'VideoExpanded');
    videoBGPlayer.removeEventListener('timeupdate',timeCheck,false);
    TweenLite.to(wrapper , 1 , { height: 546 });
    TweenLite.staggerTo( videoBGPlayer , 1 , {bottom:"+=150",  ease:CubicIn.ease}, 0.2);
    TweenLite.to( audioOn , 0.4 , { opacity: 1  }  );

    fullscreenButton.style.visibility = 'hidden';
    fomButton.style.visibility = 'visible';
    videoBGPlayer.load();
    videoBGPlayer.play();
    videoBGPlayer.muted = false;
    closeButton.style.visibility = 'visible';
    window.parent.postMessage('ExpandCreative', '*');
    expanded = true;
}

谢谢

1 个答案:

答案 0 :(得分:0)

假设弹性是您想要的效果类型,那么下面的代码应该有效。其他缓动效果和配置可以在GSAP documentation

找到
NSFetchedResultsController