This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Luca Galvani
Posted Feb 02 - Read on Facebook

Hi guys! Any idea on how to detect a click outside of an element?
Basically I have to fade out a login form when clicking outside of it...


Jeppe Reinhold

You could create a transparent layer that fiils the whole screen, but is below the login form. And put an event listener on that. The layer would listen for clicks on the whole screen, except where the login form is

Read the entire post on Facebook