weboss Posted September 18, 2022 Share Posted September 18, 2022 Hi i try run copy of this project: https://codepen.io/webilusions/pen/YzLVpVB My copy of this project: http://test2.kozart.sk/ But still i have error. Can someone please help me ? Thank all for time See the Pen YzLVpVB by webilusions (@webilusions) on CodePen Link to comment Share on other sites More sharing options...
GreenSock Posted September 18, 2022 Share Posted September 18, 2022 The log in the console says you forgot to register the plugin gsap.registerPlugin(ScrollTrigger); Link to comment Share on other sites More sharing options...
weboss Posted September 18, 2022 Author Share Posted September 18, 2022 3 minutes ago, GreenSock said: The log in the console says you forgot to register the plugin gsap.registerPlugin(ScrollTrigger); I see it, but in script.js is this code on first line Link to comment Share on other sites More sharing options...
GreenSock Posted September 18, 2022 Share Posted September 18, 2022 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. Link to comment Share on other sites More sharing options...
GreenSock Posted September 18, 2022 Share Posted September 18, 2022 I noticed two other problems: 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"). You're using a very old version of GSAP and ScrollTrigger. I'd strongly recommend updating to the latest version. 1 Link to comment Share on other sites More sharing options...
weboss Posted September 18, 2022 Author Share Posted September 18, 2022 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 More sharing options...
GreenSock Posted September 18, 2022 Share Posted September 18, 2022 Yes, did you see my earlier note about your code being in the wrong order (and using an old version)? Link to comment Share on other sites More sharing options...
weboss Posted September 18, 2022 Author Share Posted September 18, 2022 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now