Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
MarcOlmos

ScrollTrigger problems in Wordpress

Go to solution Solved by GreenSock,

Recommended Posts

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:

 

1373516789_Capturadepantalla2021-07-04alas17_42_35.png.c1d0d6ae8e0b7bbd1d79445eb049eab9.png

 

 

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

This is how I enqueued GSAP and ScrollTrigger, the problem could be there.

 

893554000_Capturadepantalla2021-07-04alas17_21_42.thumb.png.a74cb39dbadf679502a42367459c9c26.png

 

I will be waiting for some help.

 

Thank you!

Link to comment
Share on other sites

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.

 

 

  • Like 2
Link to comment
Share on other sites

  • Solution

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. 

  • Like 3
Link to comment
Share on other sites

 

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

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.

×