I am working on a carousel here and I added a autoscroll function:
// auto scroll
setInterval(function() {
aux.navigate( 1, $el, $wrapper, settings, cache );
},2000);
Unfortunatly it keeps scrolling… How do I pause or stop the autoscroll when hovering over the items to be able to click the ‘more’ button?
Set a variable on mouseover of each items and then use this variable to check inside
navigatemethod before you animate and slide the items. If the mouse is on the items then just return fromnavigatemethod without doing anything.Working demo – http://jsfiddle.net/S83Tp/2/