just Posted May 8, 2023 Share Posted May 8, 2023 Hello everyone, first, with this beeing my first post here, i like to thank for this wonderful library and the supporting community. I've been lurking for quite a while now. If you look at my codepen you will see a date and some text. When you click on it, an address will fade. Clicking it again will fade it out while moving to the right. Clicking it again will fade the address in again coming from the right. And THIS is exactly what i want the address to do on the FIRST click. How do I achieve this? Thank you very much and have a beautiful day just P.S. Can anyone come up with a better title, please? See the Pen PoyQvvr by derJerg (@derJerg) on CodePen Link to comment Share on other sites More sharing options...
Rodrigo Posted May 8, 2023 Share Posted May 8, 2023 Hi @just and welcome to the GreenSock forums! In this cases is better to just toggle a GSAP animation back and forth instead of creating a new one on each click: See the Pen OJBvPZz by GreenSock (@GreenSock) on CodePen Hopefully this helps. Happy Tweening! 1 Link to comment Share on other sites More sharing options...
just Posted October 4, 2023 Author Share Posted October 4, 2023 Hello again, I'm really sorry I didn't answer earlier. This worked totally fine and helped me to understand GSAP better. Thank you and have a nice day just 1 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