i see that on toggeling we get the animation back. like i have a simple animation div that goes from 0 to 600px in y axis. the problem is when it reaches 600px it suddenly gets 0px instead of coming back as 599px , 598px ... to 0px. how can we do this without toggeling ? i even used reversed but i didnt got it reversed. im new to gsap
Reversing animations in a function
in GSAP
Posted
i see that on toggeling we get the animation back. like i have a simple animation div that goes from 0 to 600px in y axis. the problem is when it reaches 600px it suddenly gets 0px instead of coming back as 599px , 598px ... to 0px. how can we do this without toggeling ? i even used reversed but i didnt got it reversed. im new to gsap