Class: InfiniteTicker {#InfiniteTicker}

Scrolls an element with overflow infinitely by moving elements scrolled out of view back onto the other side of the element, to be scrolled back in to view later.

Demo

Extends:

Fx.Scroll

Implements:

Loop: view to see inherited methods.

Notes:

InfiniteTicker Method: constructor {#InfiniteTicker:constructor}

Syntax:

var myInfiniteTicker = new InfiniteTicker(element, options);

Arguments:

  1. element - (element) A string referencing the id of an element, or an element object.
  2. options - (object) The Fx.Scroll options object plus the following:

Options:

Example:

var myTicker = new InfiniteTicker('ticker',{
    duration: 1000,
    transition: 'quad:out',
    direction: 'down'
});

InfiniteTicker Method: progress {#InfiniteTicker:progress}

Progresses the effect one increment

Syntax:

myTicker.progress();
myTicker.toNext(); // backwards compatibility

Returns

This InfiniteTicker instance

InfiniteTicker Method: reverse {#InfiniteTicker:reverse}

Not very easy on the eyes, but allows you to reverse the direction of the effect. Might make this prettier in the future but it works.

Syntax:

myTicker.reverse();

Returns:

This InfiniteTicker instance