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.
Loop: view to see inherited methods.
Fx.Scroll effect, your element must have an overflow.Loops methods to start and stop.var myInfiniteTicker = new InfiniteTicker(element, options);
element) A string referencing the id of an element, or an element object.object) The Fx.Scroll options object plus the following:up) The direction to scroll. Accepts up, down, left, or right. (It actually scrolls the element the opposite direction.)true) If true, will start progressing.false) A CSS selector to select the elements that determine the amount of scrolling per progression.
false, the children elements will be elected for up and down, and the grandchildren will be selected for left and right as you typically need an outer element to create a horizontal overflow.var myTicker = new InfiniteTicker('ticker',{
duration: 1000,
transition: 'quad:out',
direction: 'down'
});
Progresses the effect one increment
myTicker.progress();
myTicker.toNext(); // backwards compatibility
This InfiniteTicker instance
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.
myTicker.reverse();
This InfiniteTicker instance