Exit Intent
Exit Intent detection library.
Usage
// Initialiseconst removeExitIntent = // Destroy
Options
threshold
(default 20)
maximum distance in pixels from the top of the page to trigger.
maxDisplays
(default 1)
maximum number of times to trigger.
eventThrottle
(default 200)
event throttle in milliseconds.
onExitIntent
(default no-op function)
function to call when an exit intent has been detected.
License
MIT
originally based on https://github.com/richriscunha/Exitent