kodie
11/10/2015 - 7:30 PM

Pause Bootstrap's Carousel when fancyBox is opened and start again when fancyBox is closed.

Pause Bootstrap's Carousel when fancyBox is opened and start again when fancyBox is closed.

jQuery('.fancybox').fancybox({
  beforeLoad: function(){ jQuery('#myCarousel').carousel('pause'); },
  beforeClose: function(){ jQuery('#myCarousel').carousel('cycle'); }
});