Jump to content
GreenSock

Anderw

animations don't work

Recommended Posts

Hello everyone I am trying to insert some animations in my custom theme on wordpress, using gsap (which is very much that I wanted to try it)! but the scroll animation doesn't seem to work, I don't understand where the error is, because in the wordpress console it doesn't report anything to me! I think I have correctly inserted the scripts in the function.php, thank you in advance for your help

 

Screenshot (10).png

See the Pen gOvxRzx by Andrewwolf (@Andrewwolf) on CodePen

Link to comment
Share on other sites

I don't know a whole lot about jQuery, but removing the function wrapping everything seems to fix the problem. I'm not sure what that's doing since you already have DOMContentLoaded and load event listeners. Your pen also wasn't loading GSAP or any of the necessary plugins.

 

See the Pen c433123cfd2b3fc5db165402a6100992 by PointC (@PointC) on CodePen

  • Like 2
Link to comment
Share on other sites

thank you very much craig for your availability, in fact removing jquery also works on worpress, but the animation is not smooth as it should, even reloading and emptying the cache! I also tried with a simple parallax, and the animation is jerky, I can't to understand where the problem is, the console does not give me any errors

Link to comment
Share on other sites

If you still need help, @Anderw, please provide a minimal demo that shows the jerky behavior and we'd be happy to take a peek. 

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