JCarousel stops immediately on hover

I use jQuery jCarousel for the slider, after a few minutes I found a way to stop the slider when you hover over the mouse, but the problem is that it does not stop immediately when you hover over the mouse, it only stops at the end of the image set (3 images in my demo). However, it immediately starts with the mouse. I am new material for javascript and can not do much, coming to it. :(

My current code is http://bit.ly/ijNcow

thank

+3
source share
2 answers

Often we run jCarousel with .click(). In this case, you can use the following code to stop the animation:

itemLoadCallback: {
    onBeforeAnimation: function(jc, state) {
        jc.lock();
    }
}  

jc.lock() jc.unlock() .

+4

jCarousel , . , jQuery, , . , carousel.stopAuto(), . , , ( , ).

, jQuery stop() . (, ),

$('#listing').stop(true); 

, , , , ( , ). , , . , , , , .

+1

All Articles