Hi. I am new to GSAP and I am trying to use GSAP with React. I want to animate a particular element as I scroll and the animation state depends on the scroll progress.
import "scrollmagic/scrollmagic/uncompressed/plugins/animation.gsap";
But while importing the above I am getting an error stating that TweenMax not found. I have read many forms related this where it is mentioned this is not a GSAP issue. But when I downgraded the GSAP version to 2.1.3, it worked. But when I restored to the latest version (3.2.6 I guess) it stopped working. I didn't change the ScrollMagic version which is 2.0.7.
I have attached a link to the sandbox. Please help me resolve this issue.