Fotorama Slider: The slider is set to Autoplay="true" and it works great. How can I get the slider to pause on mouse over then resume auto play when mouse out? Here is my code:
<div class="fotorama" data-width="1170" data-ratio="1170/374"
data-max-width="100%" data-autoplay="true" data-autoplay="3000"
data-stopautoplayontouch="false">
var $fotorama = $('.fotorama'),
interval = $fotorama.data('autoplay'),
fotorama = $fotorama.data('fotorama');
$fotorama.hover(
function () {
fotorama.stopAutoplay();
},
function () {
fotorama.startAutoplay(interval);
}
);
Fiddle: http://jsfiddle.net/aha3xLsy/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With