I have a function that animates when a div is hovered on:
$('.left_scroll_button').hover(function(){
$(".scrolling_list").stop().animate({scrollLeft: '-=5px'}, 1);
});
This just animates the thing once. I want to repeat the animation continuously.. Is there some easy way to loop this? I tried to do this:
$('.left_scroll_button').hover.everyTime(10,function(){
$(".scrolling_list").stop().animate({scrollLeft: '-=5px'}, 1);
});
But this didn't work. If anyone can hep, that would be great!