Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A small JavaScript library that displays an exit-intent modal when visitors move their mouse toward the top of the viewport.
Ouibounce is a small, dependency-free JavaScript library that displays a modal when a visitor's mouse approaches the top of the viewport, signaling exit intent, to help increase landing page conversion rates.
Ouibounce is a lightweight JavaScript library created by Carl Sednaoui (of MailCharts) and maintained by contributors, designed to fire a modal when users move their mouse toward the top of the browser viewport—a classic exit-intent trigger. It takes a DOM element (the modal) and an optional options object as input, and shows or hides that modal based on mouse movement and cookie state. The library is distributed as a standalone script, also available via Bower, npm, and cdnjs, and is wrapped in a UMD wrapper so it works with AMD, CommonJS, and browser globals.
aggressive option to true to make the modal eligible to fire on every page load/reload, useful for paid landing pages.timer (default 1000ms) before firing, and optionally wait a delay in milliseconds before showing the modal, with a grace period if the mouse re-enters.callback function to run when Ouibounce triggers, and save the returned object to call fire() or disable() programmatically.npm install ouibounce), Bower, download minified/unminified from the repo, or load from cdnjs.ouibounce(false, options).ouibounce function with the element as the first argument.Ouibounce is free and open source under the MIT license. There are no paid tiers or commercial licenses to purchase.
Yes — pass the jQuery element as the first argument, like ouibounce($('#ouibounce-modal')[0]). It also works with vanilla JavaScript and is wrapped in UMD for AMD/CommonJS environments.
By default a cookie is set when the modal fires, so it won't appear again for that visitor until the session ends or the cookie expires. You can adjust this with cookieExpire, cookieDomain, cookieName, and sitewide options.
Yes, set the aggressive option to true. This makes the modal eligible to fire whenever the page is loaded or reloaded for the same user, which is recommended for paid landing pages.
The default sensitivity is 20, meaning the mouse must be within 20 pixels of the viewport top to trigger. The default timer is 1000 milliseconds, so Ouibounce won't fire within the first second after page load to avoid false positives.
It works in legacy JS engines (like IE8 and below) only if you add a shim such as es5-shim. The library itself is MIT licensed and provides no guarantees.
