Daniel Silva Posted March 9 Share Posted March 9 Hello, I hope everyone is well! I'm trying to make an animation where the element goes to position y=95 then waits 3 seconds and returns to position 0 and repeats the animation several times, but I'm not succeeding. I would like guidance to understand what I am doing wrong. Thank you very much in advance. See the Pen VwNaZWg by daniel-silva-dxp (@daniel-silva-dxp) on CodePen Link to comment Share on other sites More sharing options...
Solution GreenSock Posted March 9 Solution Share Posted March 9 Is this what you're trying to do?: See the Pen wvZGvjp by GreenSock (@GreenSock) on CodePen I'd strongly recommend reading this article: https://gsap.com/react You weren't doing proper cleanup in React, and the useGSAP() hook solves that for you. 1 Link to comment Share on other sites More sharing options...
Daniel Silva Posted March 15 Author Share Posted March 15 Thanks for the support. It helped me with the results. 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