Skip to main content
Question

Resize components in a prototype


Ammar_Ahmed1

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)

9 replies

Armin_Rouhanian

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.


m.p
  • 3 replies
  • September 9, 2024

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
  • New Participant
  • 16 replies
  • January 21, 2025
m.p wrote:

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
  • 43 replies
  • January 21, 2025

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

 


Ties
  • New Participant
  • 16 replies
  • January 22, 2025

Volodymyr_Dziuman
Phu_Nguyen wrote:

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
  • 18 replies
  • February 20, 2025

this may help:

different task but same concept


Volodymyr_Dziuman

Thank you ​@iago !


Phu_Nguyen
  • Active Member
  • 43 replies
  • February 24, 2025
Volodymyr_Dziuman wrote:
Phu_Nguyen wrote:

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: 

https://www.figma.com/design/LwIyWxAuo53LngF9ndOMbb/On-Drag-Prototype?m=auto&t=y1VW4c6DpUn0i5In-1

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings