wandoledzep/bxslider — Issue #47: A way to change tickerHover so that it doubles the speed rather than stopping it?
Author: rickysullivan
Created: 2011-11-08 11:33:48+00:00
State: open

Just wondering if there's a way to speed the ticker up on hover?

Or perhaps have the controls show in ticker mode, which control the speed on press.

/**
* Handles hover events for ticker mode
*/
function setTickerHover(){
// on hover stop the animation
$parent.hover(function() {
if(autoPlaying){
options.tickerSpeed = options.tickerSpeed * 2 ;
//base.stopTicker(false);
}
}, function() {
if(autoPlaying){
options.tickerSpeed = options.originalTickerSpeed ;
base.startTicker(false);
}
});
}