jquery - Tweenmax starts animation without waiting for ScrollMagic -
I am trying to trigger scrollmuse twinmax animation, but the animation is hit without waiting for the scroll trigger . Am I missing something here?
$ (document) .ready (function ($) {var controller = new scroll magic (); var tween = TweenMax.to ('. Animateme', 1, (Color: "green "Scale: 2.5}); var view = new scrollsin ({trigger element: '. Trigger'}) .ettine (twil). Ed to (controller); view.ed indicator ({zindex: 100});}) ;
It turns, if you have to include ScrollMagic after Toll Max, Otherwise the TVon animation will just run and ignore the scrolling.
Comments
Post a Comment