Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/johannesfischer/cwpgallery

..yet another mootools gallery with preloading, transition effects and all that jazz
https://github.com/johannesfischer/cwpgallery

Last synced: about 1 month ago
JSON representation

..yet another mootools gallery with preloading, transition effects and all that jazz

Awesome Lists containing this project

README

        

Nivoo-Slider
============

The Nivoo-Slider is an image gallery based on the jQuery Plugin NivoSlider (http://nivo.dev7studios.com/). It features 18 different transition effects.

![Screenshot 1](http://www.johannes-fischer.de/assets/Labs/labs-cwpGallery.png)

How to use
----------

Just include cwpGallery.js and cwpGallery.css to your site:

#HTML



And the gallery structure:

#HTML



And then initialize the slider using the domready event:

#JS
window.addEvent('domready',function(){

// The simple way
new cwpGallery($('Gallery'));

// The more advanced way
...

}

Documentation
-------------

## Class: cwpGallery ##

### Syntax ###

#JS
var slider = new cwpGallery(element[, options]);

#### Arguments ####
1. element - (mixed) An Element or the string id of an Element to apply the gallery to.
2. options - (object, optional) The cwpGallery options object, described below:

#### Options ####
- enableKeys - (bool: default is true)
- fxDuration - (int: default is 500)
- fxTransition -(string: dfault is cubic:out)
- scrollRange - (number: default is 4)

License
-------
MIT license