Skip to content Skip to sidebar Skip to footer

How To Pause Autoplay In A Fancybox When User Hovers The Image?

I have several images in iframes that all open a fancybox in the parent window. The fancybox.js is set to autoplay:true, but I would like this image-gallery to pause autoplay when

Solution 1:

<script>
$(document).ready(function() {
$("#Your-div").fancybox({
autoPlay:true, //Sets AutoPlay to 3 seconds********************
stopOnHover : true,
});
});
    </script>

Post a Comment for "How To Pause Autoplay In A Fancybox When User Hovers The Image?"