Skip to main content
Ammar_Ahmed1
Jun 8, 2023 1:31 PM UTC
Question

Resize components in a prototype

is there a way to create a figma prototype where you can resize components in prototype mode? i’m trying to resize components on drag (i.e. stretch navigation bar)

This topic has been closed for replies.

9 replies

Armin_Rouhanian
Active Member
Jun 9, 2023 9:15 PM UTC

Hey Ammar.

Yes, there is! In prototype interactions, there is an option called “on drag”.
You should design two states for your component, one collapsed and one expanded. then set the “on drag” prototype arrow. Make sure your animation is “smart animate”. Also, make sure your hierarchy of layers and naming in both states are the same. then, you’ll get what you want.

Armin The Riverman
m.p
Sep 9, 2024 12:43 PM UTC

Is it possible to do that with a 3 states components?
I have a panel with 3 possible different layout according to the panel sizes, but I’m not sure how to get a nice transition/interaction

Ties
Active Member
Jan 21, 2025 3:54 PM UTC

Is it possible to do that with a 3 states components?
I have a panel with 3 possible different layout according to the panel sizes, but I’m not sure how to get a nice transition/interaction

Yes, you can. Figma will automatically pick what direction is the most logical for the state change. Let me cook an example for you tomorrow :)

Phu_Nguyen
Active Member
Jan 21, 2025 5:17 PM UTC

Just use On Drag & Smart Animate between 2 frames or 2 variants, here’s a demo:

 

Ties
Active Member
Jan 22, 2025 12:49 PM UTC

 

Volodymyr_Dziuman
New Member
Feb 19, 2025 1:40 PM UTC

Just use On Drag & Smart Animate between 2 frames or 2 variants, here’s a demo:

 

Hi. Could you please share some file with this example. Thank you.

iago
New Participant
Feb 20, 2025 9:26 PM UTC

this may help:

different task but same concept

Volodymyr_Dziuman
New Member
Feb 21, 2025 10:56 AM UTC

Thank you ​@iago !

Phu_Nguyen
Active Member
Feb 24, 2025 10:13 AM UTC

Just use On Drag & Smart Animate between 2 frames or 2 variants, here’s a demo:

 

Hi. Could you please share some file with this example. Thank you.

Hi this is the file: