Skip to main content
Question

Making a component appear after a time delay with variable


so, I don’t know what I’m doing wrong I’m unable to make this component appear after 1s delay with a boolean variable.

If I set the variable in the interaction from false to true it does work, but it doesn’t the work the other way.

2 replies

y_toku
Figmate
  • Community Support
  • 2294 replies
  • June 17, 2024

Thanks for reaching out. Just to confirm, do you want it to toggle on and off every second, or should it toggle off when the boolean is true and vice versa?

If you’re looking to create a loop action, you can do this by creating ‘on’ and ‘off’ variants of the component and setting up interactions between them with a delay.

For the latter case, you can achieve this by using a conditional statement.

Hope this helps! Please let me know how that works.

Thanks,
Toku


IT13
  • New Member
  • 1 reply
  • March 9, 2025

Hi Toku

Thanks for the tip. 

Could you please describe the script to do this : ”If you’re looking to create a loop action, you can do this by creating ‘on’ and ‘off’ variants of the component and setting up interactions between them with a delay."

 

I am trying to do it the way I was doing it years ago on Axure but I can't find my way in the condition console.

 

What I would like to do is for instance :

-On click

--Set button to true 

--Change button variant to red button appears in red

--//Wait 500ms// that's the Axure way so I would assume //after delay 500 ms// un Figma

-Change button variant to green

 

So basically on click a button appears in red then after delay 500ms the button turns green.

 

Thanks 🙏 for your help mate, 

Max


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