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

pcote
New Participant
March 6, 2024

Thanks for explaining! It just make me realize Advanced Prototyping’s UX isn’t very good. Pretty ironic, coming from a company that places design at the core of its values.

Josh_Bernard
June 15, 2024

Where/how are you applying smart animate?

Ziv_Feldman1
New Member
June 26, 2024

Work for me

Adams_George1
New Member
June 26, 2024

benji.hobson is suggesting below workaround and it worked for me:

Adding any interaction and animation for the component variants.

e.g. In my case, I used Key/Gamepad (leaving the “key” field blank) with Smart animate.

Adams_George1
New Member
June 26, 2024

Workaround:

Add any interaction and animation for the component variants.

e.g. In my case, I used Key/Gamepad (leaving the “key” field blank) with Smart animate.

Metehan_Altuntekin
New Member
June 26, 2024

I have been trying this solution for over an hour and couldn’t get it worked. Finally I realized that this only with setting the variable but not with setting a variable mode. I wanna leave this here in case others struggle with the same thing.

dimitrie
July 8, 2024

It’s a bit finicky but works in principle.

I have yet to see a good demo file so I made one myself. The demo changes a square into a circle. It includes two examples. Basic instructions:

  • Create a string variable with its value set to the default variant name of the target component.
  • Assign that variable to the component inside your prototype frame (nothing changes)
  • Set up a click prototype interaction that changes that variable value to the new variant name on a controlling component (like a button).
  • Make sure that the target component (that will be changed) has animations changes set up with “on click” or “keypad” (can be empty) that smart animates them into the other variant.

Figma – 8 Jul 24

Smart Animate Example with Variables setting the Component Variant.fig (61.9 KB)