Ferrari Posted August 4, 2023 Share Posted August 4, 2023 How can this be if I membership Greensock Club? import { gsap } from "gsap"; gsap.registerPlugin(ScrollSmoother); ScrollSmoother.create({ smooth: 2 }); Link to comment Share on other sites More sharing options...
Solution Rodrigo Posted August 4, 2023 Solution Share Posted August 4, 2023 Hi, You're not importing the ScrollSmoother plugin, so basically you're trying to register something that is not defined anywhere in the scope of that particular file. import { gsap } from "gsap"; import { ScrollSmoother } from "gsap/ScrollSmoother"; gsap.registerPlugin(ScrollSmoother); ScrollSmoother.create({ smooth: 2 }); You can always check the installation guide on the docs as well in order to see how to proceed in different scenarios, especially the installation helper: https://greensock.com/docs/v3/Installation Hopefully this helps. Happy Tweening! 1 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