Applying styles conditionally

Hi friends,

I’d like to apply a shadow to an element conditionally? Is applying styles conditionally possible in Axure? If so, can someone explain how (perhaps with an example)?

-Mani B

You can set separate styles for: MouseOver, MouseDown, Selected, Disabled, Focused, and Error.

What you can do is just use the Selected style (right click the widget, choose “Style Effects…”) and setup the style you want. Then when you want to show that style for the widget you just need to set it to selected, and set it to not selected to hide it. You can do this with any interaction and conditions you want.

Alternatively, add a second widget behind it with a shadow and show/hide that.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.