Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
raana

ReferenceError: ScrollTrigger is not defined

Go to solution Solved by OSUblake,

Recommended Posts

Hi, I just started with GSAP and yesterday I upgraded my account and reinstalled GSAP but also when using

 gsap.registerPlugin (ScrollTrigger); 

I get the following error:

Quote

ReferenceError: ScrollTrigger is not defined

 

Link to comment
Share on other sites

I had previously installed with  npm install gsap but today I downloaded GSAP 3 with Shockingly Green bonus files (3.8.0) from my dashboard and installed it with npm install ./gsap-bonus.tgz   than I try  to run npm install gsap@npm:@gsap/shockingly .

 

Do I have to install libraries separately?

 

COPY TO CLIPBOARD

1 hour ago, Cassie said:

Hey @raana,

 

Have you included scrollTrigger?

Here's an installation guide - happy to provide pointers if you can give me more information about your project setup.

https://greensock.com/docs/v3/Installation

Link to comment
Share on other sites

  • Solution
7 minutes ago, raana said:

and installed it with npm install ./gsap-bonus.tgz   than I try  to run npm install gsap@npm:@gsap/shockingly .

 

Those are 2 different installation methods. You can't do both. Please watch this video...

 

 

  • Like 4
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.
×