Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jCarousel - how to get pause on hover with autoscroll?

JCarousel have recently changed (january 2011).
It used to have a way to implement pause on hover with autoscroll.

With the new version I cannot solve how to get autoscroll to stop on hover:
I would like the scroll to stop on mouseover and start again on mouseout.
Any suggestions?

Example code is here - http://testsite3.dk/jcarousel/
Jcarousel here: github.com/jsor/jcarousel

Link to JQuery + javascript to load thumbs here - http://testsite3.dk/jcarousel/autoscroll.txt

like image 709
user1152435 Avatar asked Jan 16 '12 18:01

user1152435


1 Answers

add this code into your jcarousel initCallback(carousel)

 carousel.clip.hover(function() {
    carousel.stopAuto();
}, function() {
    carousel.startAuto();
}); 
like image 178
mkp Avatar answered Oct 16 '22 05:10

mkp