rotator.js

Creats a set of 'rotating' elements, which are circinately moving in an infinite fashion.


Objects

Methods

Constants

CSS classes


Rotator(panelX, panelY, paramsObj, callback)

Creates the Rotator object. It's elements will have width of panelX and height of panelY. Callback will be executed every time rotation pauses. Argument paramsObj is an object of the following properties:

Rotator:addPanel(element)

Adds a new element to rotating set.

Rotator:start()

Starts the rotation process.

var r = new Rotator(200, 200, {type:Rotator.TYPE_RIGHT}, function(){});
r.addPanel("div1");
r.addPanel("div2");
r.addPanel("div3");
r.start();