Skip to main content

Using a condition, is there a way to check if an element is currently visible?

Where am I?

In UXPin you can ask and answer questions and share your experience with others!

Kasia Kowalska
Kasia Kowalska UXPin Team

Yes, if the elements visibility is set via states (eg base - visible, 2nd state - hidden) 
You can use a condition to verify the active state and determine the following actions based on it.
 

Eric Pitcock
Eric Pitcock

Haha. I never even considered that. Thank you.

Linus Lim
Linus Lim UXPin Champion

I prefer to set variables as you can have a single source to update them.

In this example, I set a visible is true to blueCircle.  On hover on the yellowRectangle, it will check if is true and move the element.  

Related Posts