jquery-ticker
jquery-ticker copied to clipboard
Loop and Pause features
Added onAdvanceLooped option to hook when the headers loop back around.
Made it so the pause class will also pause the ticker (instead of just the hover).
Example of Loop
$('.ticker').ticker({
itemSpeed: itemSpeed,
onAdvanceLooped: function() {
if (!has_swapped)
{
setTimeout(nextOperator, itemSpeed);
has_swapped = true;
}
},
});
Example of pause
$(prev).find('.ticker').addClass('pause');