Skip to main content
Solved

Is it possible to change the visibility of a component (or frame) based on the visibility of another component or frame?

  • June 4, 2024
  • 1 reply
  • 644 views

Sam84

for example, when an overlay is visible it causes another component to hide.

I have this prototype where clicking on a bottle, cause a label to be displayed over the bottle. Clicking outside the overlay closes the overlay and on a different bottle causes the overlay to appear over that bottle.

This is behaving as I want it to.

There is a default label that is visible before any bottle has been clicked, but once another bottle has been clicked I want that label to be hidden. Is that possible.

Test playground here

Best answer by Valdas_Staskevicius

Hi @Sam84 ,

You can easily achieve this by using local variables. Simply create a boolean variable with a true value and attach it to the text layer you want to toggle. Then, for the wine components that aren’t expanded, add an interaction that sets that variable to false.

View original
This topic has been closed for replies.

1 reply

Valdas_Staskevicius

Hi @Sam84 ,

You can easily achieve this by using local variables. Simply create a boolean variable with a true value and attach it to the text layer you want to toggle. Then, for the wine components that aren’t expanded, add an interaction that sets that variable to false.


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