Streaming live at 10am (PST)

"Click Outside of Element" Interaction Trigger


When you create a modal or say a hidden sidebar that opens with a click interaction, you usually have to either put the close interaction on the "second click". If you want to close it by clicking anywhere outside of it (like most users would expect it to) you have to create a wrapper that lives outside of both the modal and the page content wrapper. You can then put the click interaction on that wrapper to close it.

Would be awesome though if you had the option to trigger an interaction by "click outside of element".

Oh and webflow is awesome! Keep it up :smiley:


This is interesting but it would also trigger that interaction whenever you clicked anything at all on the page. So you could click a link and it would trigger that interaction. I think this could get messy really fast.