Assign multiple interactions to one element

Is it possible to assign multiple interactions to one element. I am using the interactions to open a modal at this moment, and I would also wish to be able to close it without creating a specific button for this, but just clicking outside the modal.

In stead of assigning one interaction to one div called “Modal Wrapper” and one interaction to one button, I wish to assign both interactions to the div "Modal Wrapper.

Thanks!


Here is my public share link: LINK
(how to access public share link)

I don’t believe it is possible. ( if not true please feel free to correct me )

Reason because it would fire all the functions assigned for the element, unless you make it toggle. But what you are trying to make is if clicking outside the modal - to close the modal, then yes - with a transparent - inside - absolute div that covers entire screen, if clicked it will close the modal.

I have made this with little custom scrip - but the principle remains the same, and you can use IX, IX2 for it to make it happen.

Like this example i have made ( scroll down to section where it says to Open modal ) : https://preview.webflow.com/preview/kristaps-template?preview=3cce397233aa14aca53ba2adc0b952cc

Live preview: http://kristaps-template.webflow.io/

Let me know if this is what you’re looking for.