Applies an active
class to a set of elements one at a time at a specific interval.
var savingsInterval = $('.my-sayings > li').activeInterval({
interval: 3000
}).start();
bower install jquery.active-rotator
Options:
// Defaults
{
// Time between each tick
interval: 5000
// Class name to use for active element
, className: 'active'
// Class name to use for the next active element
, upNext: 'up-next'
// Before the class change occurs
, onTickBefore: function( interval ){}
// As the class change occurs
, onRotate: function( $el, interval ){}
};
The plugin returns an interface for handling the rotation.
Starts the interval.
Stops the interval.
Go to a specific position
Got to the previous position
Got to the next position