Jump to content
Search Community

Not working ScrollTrigger

weboss test
Moderator Tag

Recommended Posts

I noticed two other problems:

  1. Your script.js file is loading BEFORE the <body>, so the elements you're trying to access in your animations don't even exist yet. You should move that to the bottom of the <body> or wrap all your JS in a "load" event handler (or "DOMContentLoaded").
  2. You're using a very old version of GSAP and ScrollTrigger. I'd strongly recommend updating to the latest version. 
  • Like 1
Link to comment
Share on other sites

4 minutes ago, GreenSock said:

Then you probably have code elsewhere that's trying to use ScrollTrigger before it's registered. You'll significantly increase your chances of getting a solid answer if you provide a minimal demo (like in CodePen). We can't effectively troubleshoot a live site.

 

At this link is project on codepen :

https://codepen.io/webilusions/pen/YzLVpVB

This exact code is also in the live site files, but it no longer works there

Link to comment
Share on other sites

33 minutes ago, GreenSock said:

Yes, did you see my earlier note about your code being in the wrong order (and using an old version)? 

Sorry I didn't notice your last comment. Problem is solved !

Thank you very much for your support!

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