Jump to content
Search Community

Uncaught ReferenceError: ScrollTrigger is not defined?

Anderw test
Moderator Tag

Go to solution Solved by Rodrigo,

Recommended Posts

hi I updated the gsap files to the current version, but I can't understand why it gives me this error!

I loaded the files into function.php correctly, and the same files with the old version work!

I am attaching some screenshots and the code

Screenshot 1.png

Screenshot 2.png

Screenshot 3.png

Link to comment
Share on other sites

  • Solution

Hi

 

Your custom script is being loaded before the bundle file. The bundle file should be a dependency of your custom file as well as jQuery.

 

Give that a try and let us know how it works.

 

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...