All projects · Marketing & Lead-Gen
LastChance — Exit-Intent & Idle Capture
A lead-capture demo that surfaces the right prompt at the right moment: an exit-intent discount modal fires when the cursor leaves the top of the…
A lead-capture demo that surfaces the right prompt at the right moment: an exit-intent discount modal fires when the cursor leaves the top of the viewport, and an idle-download banner slides up after 20 seconds of inactivity. Each prompt remembers its own dismissal in sessionStorage so it never nags twice in a session.
- Classic top-edge exit-intent detection armed once per load, with a separate activity-reset idle timer
- Independent per-prompt dismissal memory via sessionStorage keys, with mutual-exclusion so modal and banner never stack
- Built-in demo controls to force each trigger and reset session memory for easy showcasing
- Escape-to-close, backdrop-click dismiss, and accessible dialog/region roles
Built with: HTML, CSS, Vanilla JavaScript, sessionStorage, mouseout/idle event detection, Google Fonts, Inline SVG