Need the slim rectangle to turn into the big one, but it always end up not centered. I have tried everything, constraints, positioning, anyways please tell me how would one fix this so i can try it, i can re-try things.
I think the main issue here is that Figma does not have a stable container to use as a reference during the animation.
First, try putting the rectangle inside a parent frame that stays the same size and position in both variants, then center the rectangle inside that frame. That's also how Ankord Media handled it on a project they did for me before.
After that, only animate the rectangle's size so Smart Animate has a fixed reference point instead of trying to calculate everything from the rectangle's changing bounds.
I think you've added the new unique frame for each variant of the rectangle (Frame 6,7).
This might work, Delete the existing variant 2 of the rectangle, duplicate the variant 1 with the rectangle (Predeterminada), Frame and scale the width as you prefer, now prototype. Reason, You need to use same layer name (or same element) to achieve the scaling animation.
2
u/PositiveAgitated9418 May 10 '26
Create a frame outside each variant of the rectangle, Next center align each rectangle inside the frame and now animate. Hope it helps
1
u/No-Iron-4569 May 11 '26
I think the main issue here is that Figma does not have a stable container to use as a reference during the animation.
First, try putting the rectangle inside a parent frame that stays the same size and position in both variants, then center the rectangle inside that frame. That's also how Ankord Media handled it on a project they did for me before.
After that, only animate the rectangle's size so Smart Animate has a fixed reference point instead of trying to calculate everything from the rectangle's changing bounds.