Anderw Posted May 22, 2022 Share Posted May 22, 2022 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 See the Pen gOvxRzx by Andrewwolf (@Andrewwolf) on CodePen Link to comment Share on other sites More sharing options...
PointC Posted May 22, 2022 Share Posted May 22, 2022 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 2 Link to comment Share on other sites More sharing options...
Anderw Posted May 23, 2022 Author Share Posted May 23, 2022 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 More sharing options...
GreenSock Posted May 23, 2022 Share Posted May 23, 2022 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 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