Skip to main content
Question

Resize components in a prototype

  • June 8, 2023
  • 9 replies
  • 3421 views

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)

This topic has been closed for replies.

9 replies

Armin_Rouhanian
  • Active Member
  • 80 replies
  • June 9, 2023

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
  • Active Member
  • 19 replies
  • January 21, 2025

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

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

 


Ties
  • Active Member
  • 19 replies
  • January 22, 2025

 


Volodymyr_Dziuman

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
  • 44 replies
  • February 24, 2025

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: