Jump to content
Search Community

ScrollSmoother is not defined

Ferrari test
Moderator Tag

Go to solution Solved by Rodrigo,

Recommended Posts

  • Solution

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!

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