Recently, I am studying GSAP and I am going to add some animations when scrolling
So, I have install gasp node module and imported the gasp, ScrollTrigerr as follow:
import { gsap } from "gsap";
import ScrollTrigger from "gsap/ScrollTrigger";
and then insert follow code to use ScrollTriger, but some errors were caused
gsap.registerPlugin(ScrollTrigger);
TypeError: Cannot read properties of undefined (reading 'default')
How can I fix above error? Please help me