janpaepke / ScrollMagic

The javascript library for magical scroll interactions.
http://ScrollMagic.io
Other
14.9k stars 2.17k forks source link

How to trigger TweenMax on element but unsync with scroll event #870

Open oelbaga opened 5 years ago

oelbaga commented 5 years ago

Is there a way to still trigger a TweenMax animation on a triggerElement, but NOT have the tween animation itself sync with the scroll, so I mean to kind of execute a TweenMax like a CSS class toggle.

oelbaga commented 5 years ago

I think I have this wrong. It seems to work ok already. Sometimes it just triggers the tweenMax and other times as you scroll the tween moves. I'm not sure what accounts for the difference?