kaipeng Posted April 6, 2022 Share Posted April 6, 2022 Included the min file inside the folder, and registered the plugin, but caught the error: ScrollSmoother Uncaught TypeError: Cannot read properties of undefined (reading '_getVelocityProp') gsap.registerPlugin(ScrollTrigger, ScrollSmoother) let smoother = ScrollSmoother.create({ wrapper:"#smooth-wrapper", content: "#smooth-content", smooth: 2, // seconds it takes to "catch up" to native scroll position smoothTouch: 0.1, effects: true // look for data-speed and data-lag attributes on elements and animate accordingly }) Link to comment Share on other sites More sharing options...
kaipeng Posted April 6, 2022 Author Share Posted April 6, 2022 Issue solved, wrong version of GSAP 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now