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

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -