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...Thanks!
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