我试图让 scrollmagic 触发 TweenMax 动画,但动画开始时无需等待滚动触发器被击中。我在这里错过了什么吗?
$(document).ready(function($) {
var controller = new ScrollMagic();
var tween = TweenMax.to('.animateme', 1, {color: "green", scale: 2.5});
var scene = new ScrollScene({triggerElement: '.trigger'})
.setTween(tween)
.addTo(controller);
scene.addIndicators({zindex: 100});
});