Daniel Silva Posted March 9, 2024 Posted March 9, 2024 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.
Solution GreenSock Posted March 9, 2024 Solution Posted March 9, 2024 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
Daniel Silva Posted March 15, 2024 Author Posted March 15, 2024 Thanks for the support. It helped me with the results.
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