Share Posted February 2 I'm Trying to apply ScrollSmoother but it say ScrollSmoother is not defined ``` gsap.registerPlugin(ScrollTrigger, ScrollSmoother); ``` ``` <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.4/gsap.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.4/ScrollTrigger.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/smoothscroll/1.4.10/SmoothScroll.min.js"></script> ``` Link to comment Share on other sites More sharing options...
Share Posted February 2 Hi, ScrollSmoother is not in the file you're using: <script src="https://cdnjs.cloudflare.com/ajax/libs/smoothscroll/1.4.10/SmoothScroll.min.js"></script> That is not a GreenSock tool so that's why you're getting that error. The library you're pointing to is this: https://github.com/gblazex/smoothscroll-for-websites ScrollSmoother is a bonus plugin that comes with a Club GreenSock membership: https://greensock.com/scrollsmoother/ You can still test it in your local environment installing the gsap-trial package: https://www.npmjs.com/package/gsap-trial Also you can try it in Codepen forking this: See the Pen aYYOdN by GreenSock (@GreenSock) on CodePen Hopefully this clear things up. 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