Submit your widget

cool content slider jQuery plugin

Created 12 years ago   Views 29954   downloads 5305    Author revolverjs
cool content slider jQuery plugin
View DemoDownload
45
Share |

Revolver is a new content slider that makes no assumptions about your markup. Think of Revolver as a boilerplate or framework for making your own slider, exactly the way you want it. But don't let that scare you, it's really easy, I promise!

Instantiation

Regardless of whether you are using jQuery or Mootools version of Revolver, there are only two ways to create a new instance.

Method 1

The first method, and likely the most obvious, is to call it like a plugin. When using this method, the Revolver instance is stored in the element's storage for subsequent retrieval under the namespace "revolver".

$('#my_slider').revolver({options});

// get the instance
var my_slider = $('#my_slider').data('revolver');

Or, if you're super cool and want to do it all in one line…

var my_slider = $('#my_slider').revolver({options}).data('revolver');
Method 2

The second and more object-oriented method is to call the Revolver object like a constructor using the new keyword. When using this method, the Revolver instance is immediately returned.

// get the instance
var my_slider = new Revolver($('#my_slider'), {options});

// my_slider now contains the Revolver instance

Read more:http://revolverjs.com/docs.html