Share Posted July 4, 2021 Hi, I was trying to created some cool animations using ScrollTrigger, but it doesn't work. The animation plays once the page is loaded. This is my code: I would like to add that thanks to the activity of this forum I could integrate GSAP animations to a child theme on Wordpress. Link to comment Share on other sites More sharing options...
Author Share Posted July 4, 2021 This is how I enqueued GSAP and ScrollTrigger, the problem could be there. I will be waiting for some help. Thank you! Link to comment Share on other sites More sharing options...
Share Posted July 4, 2021 Hi Marc! What's the issue? You said it played once the page loads, correct? That's what the DOMCotentLoaded is supposed to do. If you try to play it before the page loads, you're probably going to have some errors. 2 Link to comment Share on other sites More sharing options...
Solution Solution Share Posted July 5, 2021 It looks to me like the problem is that you're using a very outdated version of GSAP that doesn't work with ScrollTrigger Try updating to 3.7.0 for both. 3 Link to comment Share on other sites More sharing options...
Author Share Posted July 5, 2021 12 hours ago, GreenSock said: It looks to me like the problem is that you're using a very outdated version of GSAP that doesn't work with ScrollTrigger Try updating to 3.7.0 for both. Thank you!! It was that!! 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