Share Posted May 7, 2022 I've installed GSAP to my WordPress site and from what I can see everything is in the correct order, so I have no idea why the ScrollTrigger plugin won't work. I'm trying to use the example from codepen on my page. Here's my setup 1. Error code in dev tools:https://go.seee.link/JEJvQvU8Ag.png 2. Scripts in Scripts Organizer:https://go.seee.link/msedge_jCDsAgNXP4.png 3. My code in Scripts Organizer: https://go.seee.link/msedge_p1O511O7G1.png 4. Order of output in browser:https://go.seee.link/chrome_K0KPbBJSiy.png Thanks in advance See the Pen GRWobyX?editors=1010 by GreenSock (@GreenSock) on CodePen Link to comment Share on other sites More sharing options...
Share Posted May 8, 2022 Hm, the minimal demo seems to be working fine. Unfortunately screen shots of code aren't adequate. We can't see any of the context or poke around. Please provide a link to where we can see the error happening in our own browser. That error definitely means that ScrollTrigger wasn't loaded or registered at the time your code executed. Link to comment Share on other sites More sharing options...
Author Share Posted May 8, 2022 What do you need?`I can't see more if I share the url. I've inspected the site and you can see my code is shown in the footer before the custom code/call. Can I share the url privately, so it won't get spammed? Link to comment Share on other sites More sharing options...
Solution Author Solution Share Posted May 8, 2022 I did found out my self. scrollTrigger was an old version, even though I picked the newest from cdnjs.. It was version1.x.x.. Where do I find the newest CDN urls? Link to comment Share on other sites More sharing options...
Share Posted May 8, 2022 It looks like you were loading this one, which is not a GreenSock product: https://cdnjs.com/libraries/ScrollTrigger This here is where to get the links for all the GSAP related (non-club-membership) files: https://cdnjs.com/libraries/gsap 4 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