Skip to main content
Ammar_Ahmed1
June 8, 2023
Question

Resize components in a prototype

  • June 8, 2023
  • 9 replies
  • 3917 views

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
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.

Armin The Riverman
m.p
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
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
January 21, 2025

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

 

Ties
Active Member
January 22, 2025

 

Volodymyr_Dziuman
New Member
February 19, 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.

iago
New Participant
February 20, 2025

this may help:

different task but same concept

Volodymyr_Dziuman
New Member
February 21, 2025

Thank you ​@iago !

Phu_Nguyen
Active Member
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: