Open cyberformed opened 8 years ago
You can add the callback open, and setTimeout to achieve this...
$('.floater').magnificPopup({
type:'image',
disableOn: function() {
return true;
},
callbacks: {
open: function() {
setTimeout(function(){
$('.floater').magnificPopup('close');
},10000); // 10000 == 10seconds
}
}
});
$('.floater').magnificPopup('open');
I am using magnific popup for a promotion banner using a popup modal which displays an image. I want to close that modal with the image after 10 seconds automatically. How to achieve it.
`
` ```