Webflow Exit Intent Cloneable

To test this, ensure that you open the live site and move your mouse out of the viewport towards the top of your browser. This also sets a cookie to prevent the modal from continually loading with each new visit. So, to test either clear the cookie or open incognito.

I threw this cloneable together based on the guide provided by webtips.dev (GitHub). Check out their site for additional features or adjustments to the exit algorithm.

Example exit intent popup

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.