Figma Component within Component set Animation Not Working

I am Creating Flip Flop card But My button Animation not working in Component set, When I check solo Button It work But In Component Group animation Is Not working, Can You Please Guide Me How To solve This Issue

Please Watch Video:- Figma Animation Problem

Hey there. This problem wasted my time long ago.

I believe it might be also a problem in Figma trying to change variants. I’m not sure how I did fix it.

but make sure the primary element of your component (the first layer) is “hug content”

then check your instances. make sure they are also on hug content and not fixed.

Hope it helps.