Skip to main content
Question

Can I create an animation where an object becomes smaller as a button is held by the user?


jdjones

Hello. I am somewhat new to Figma but would love to incorporate this animation into my prototype.

I need an object (a block of text) to become smaller only when the user pushes and holds another button on the interface.

So to begin, the screen is static with some text and a button, then the user presses the button and the object (text) begins to shrink. Then, when the user releases the button another screen is triggered. Is this possible? If so, I haven’t been able to figure it out. I apologize if this is easy and a waste of everyone’s time. It’s not like the usual animations people create so I’ve had a hard time figuring it out.

2 replies

Raphael_M
  • Power Member
  • 376 replies
  • March 14, 2025

It’s hard to do that for separate components, I can’t find a way to do it because maybe there’s not an action like when released or something like that, it only have while pressing. The only way to do that is just make the entire thing component and just use the change to function.


jdjones
  • Author
  • 3 replies
  • March 14, 2025

Yeah, I had a long convo with chatgpt and it didn’t think there was a way either. It recommended that the best I could do would be to set in motion the shrinking/screen change with a button-push but that having a “user-hold” function wold not work. Thanks for the help!


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