Skip to main content
J.D_Posey
June 22, 2023
Question

Variables + Smart Animate?

  • June 22, 2023
  • 27 replies
  • 10932 views

Not seeing a way to have variable bool states allow for smart animations in the same way changing variant states allows for it (i.e. if you made a switch that flipped using 2 variants, it’s easy to have them smart animate to each other… but not possible with variables, as variable state changes don’t seem to have controls for animation)

This topic has been closed for replies.

27 replies

Melissa_A_Casole
September 20, 2023


Im so happy it helped! With the variant interactions - b/c it doesnt allow you to add 2 clicks to transition back and forth, one of them needs to be a drag. This is just a way to ‘trick’ Figma.

Melissa_A_Casole
September 20, 2023

hey there - im not sure you would need a variable for this. You could just smart animate b/t the open/close states. Are you trying to have it where only one dropdown can be open at the same time?

JustJest
New Member
October 17, 2023

Yeah, there are variables that trigger one dropdown menu in a main navigation component being opened at a time. For example, in the navigation component there are different drop downs for a favorites icon button, an account icon button, and a dynamic search field.

I would like to handle this with variables in the few navigation variants (which handle different types of logged in users) instead of having every single combination of opened and closed menus as variants of a component. It would balloon exponentially.

This is something that is easily done in Axure. I was hoping to be able to replicate something like that in Figma.

Claudio_Torres
New Participant
October 24, 2023

Hello Melissa, this is really useful, but I have a question, if you need to use this element like a component to reuse in multiple screens is not possible, because appear the legend “Removed Variant bindings from nested instances”. And automatically you cannot use for example the text variant “GaugeTemp”, do you have any clue if this is possible? I created a side navigation with expand and collapse components and variables and works perfectly until I try to convert it into a component.

November 6, 2023

This was really helpful Melissa, thank you! Looks like there has been an update since this post and we no longer have to define those extra variables, changing the text in the current_state variable triggers the “on click” transition.

November 9, 2023

Thanks very much @Melissa_A_Casole , this was super helpful.

November 14, 2023

Unfortunately, this doesn’t work for me. Have overlooked your video multiple times and can’t get the same functionality to work. 😦 Super bummed out how they don’t have this working yet.

November 15, 2023

OOOOOOKIE dokes.

After 5 hours of going through insane hurdles and pulling out my hair - I HAVE FOUND OUT THE PROBLEM.

you HAVE to have the Smart Animate enabled on the COMPONENT LEVEL.

Don’t assign any of the Smart Animations to elements within the component - ONLY component level Smart Animations will apply when changing component level state.

Please, Figma team, save others from this insane stress I just went through and just enable variable changes to be a trigger for interactions!!

November 15, 2023

All in all - the real benefit here would have component Variants + Properties just assigned to variables. Would make the entire process far easier

February 9, 2024

The loom is super helpful, but it would be 10000x easier if Figma just let us add smart animate to a conditional on click interactions. Please, Figma!