Jump to content
Search Community

ScrollSmoother - Uncaught SyntaxError: Unexpected token 'export'

neontrenton test
Moderator Tag

Recommended Posts

Hello.

 

I'm currently attempting to initiate ScrollSmoother but I'm getting the error Uncaught SyntaxError: Unexpected token 'export

 

I'm not completely new to GSAP, having used it as well as ScrollTrigger and SplitText for a handful of projects, but I'm for some reason unable to get ScrollSmoother to work properly.

 

Any ideas why this would be happening?

 

I have my html set up properly, with the entire site wrapped in #smoother-wrapper and the content wrapped in #smoother-content.

 

I'm also seeing the error ScrollSmoother is not defined.

 

Screen Shot 2022-04-04 at 2.34.01 PM.png

Screen Shot 2022-04-04 at 2.37.20 PM.png

Screen Shot 2022-04-04 at 2.37.49 PM.png

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.
×
×
  • Create New...