Component animation not working when linked to something else

Hi have this project where I made my button animation using a component and variants and it works well on its own. I now have another component that I wish to make appear after the animation. But I want it to appear only when the button gets clicked not after a delay. Unfortunatly since I used the “on tap” option for the animation I can’t use it to link it to my popup component and when I use any other option I can see the pop up but the animation doesnt start. Is there any work around for this problem,

Thank you!