Hello everyone,
I am new to GSAP and have been trying to achieve something for the last couple of hours, but I am not 100% sure how to do it.
I want to pin the cards on top of each other, and each time a new card is set to pin, it should have some distance set by attributes. Additionally, when a new card starts its animation, all other pinned cards should reduce in opacity by 0.4. Lastly, once the last card finishes its animation, everything should return to normal.
I have provided a CodePen link. Please check it and let me know how I can fix it.
https://codepen.io/nafiul09/pen/bGZKGdW
Thanks in advance.