Closed fl0w86 closed 4 years ago
Hi!
The reason we are experiencing this issue is because GSAP was updated to version 3, which introduced huge changes to their API. This means, unfortunately, version 3 is not yet supported by ScrollMagic.
What you can do for now is install version 2.1.3 of GSAP, by using npm install gsap@2.1.3
, until ScrollMagic updates the GSAP plugin to be used with new version.
And there I was hoping I wouldn't overlook anything trivial. Cheers for that, it does work in 2.1.3. Looking forward to the working update for gsap 3. Thanks again.
Hi,
after hours of fiddling about I can't seem to overcome this problem. I am trying to get Scrollmagic to trigger a GSAP animation in a React component.
The console logs this error: (ScrollMagic.Scene) -> (animation.gsap) -> ERROR calling method 'setTween()': Supplied argument is not a valid TweenObject
These are my imports:
This is my test component:
Text and Box are just styled components I am using here.
I found an issue from 2014 which had been fixed so it can't be that. After hours of researching this problem I could really use some help and hope I am not overlooking something trivial.