Closed felipeS closed 10 years ago
I'd also like to see this feature implemented.
Hi, It`s not possible by default, but i think you can create it using default triggers, like initCarousel and extend the behavior of obj.rotateTime. Something like this http://pastie.org/8619002
$('#gallery').carousel({ autoRotate : 4000 }); $('#gallery').on( 'initCarousel', function(event, defaults, obj){ $(this).hover( function(){ clearInterval( obj.rotateTime ); }, function(){ obj.rotateTime = window.setInterval( function(){ obj.rotate(); }, defaults.autoRotate ); }); });
Test it and tell me if it works for you :)
Cheers
Worked perfectly! This is great! Thank you so much!
Great!
Hum... For some reason I can't get it to work in my case http://jsfiddle.net/brunoalla/46d0zyxp/1/
Am I missing something obvious? The javascript contains https://raw.githubusercontent.com/basilio/responsiveCarousel/master/responsiveCarousel.js followed by the above snippet, from line 413.
Is it possible to stop or pause the autoRotation when i am over any item of the carousel ?
Thanks!