jquery-ticker icon indicating copy to clipboard operation
jquery-ticker copied to clipboard

Loop and Pause features

Open Lachee opened this issue 6 years ago • 0 comments

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');

Lachee avatar Jun 09 '19 05:06 Lachee