Jump to content


ScrollSmoother is not defined

Recommended Posts

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



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:



ScrollSmoother is a bonus plugin that comes with a Club GreenSock membership:



You can still test it in your local environment installing the gsap-trial package:



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!

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.