carlsednaoui / ouibounce

Increase your landing page conversion rates.
MIT License
2.31k stars 372 forks source link

How to trigger modal to fire after 3 seconds? #111

Open gambit999 opened 8 years ago

gambit999 commented 8 years ago

Nevermind if the user mouse is out of the scope or not.

jsieber commented 8 years ago

You should be able to use the following:

var _ouibounce = ouibounce(document.getElementById('ouibounce-modal'), { aggressive: false, timer: 3, });

setTimeout(function(){ _ouibounce.fire(); },3000); //3 seconds