oskarkrawczyk / floom
- Source
- Commits
- Network (1)
- Issues (2)
- Downloads (1)
- Wiki (1)
- Graphs
-
Tree:
b389731
commit b389731e957b24da00be58a531b899f16a21b621
tree 7e400c397e31c6abd5c83999b3985b3194186ff1
parent 6f7d7fcec865d5ab96235fdcfc663888fac1a552
tree 7e400c397e31c6abd5c83999b3985b3194186ff1
parent 6f7d7fcec865d5ab96235fdcfc663888fac1a552
floom /
| name | age | message | |
|---|---|---|---|
| |
Demos/ | Mon Aug 31 07:44:56 -0700 2009 | |
| |
Docs/ | ||
| |
README.md | Mon Aug 31 07:43:53 -0700 2009 | |
| |
Source/ | ||
| |
package.yml |
README.md
Floom
Floom is an extendible blinds-like slideshow widget for MooTools 1.2+.

How to use
There are two ways of setting Floom up. One is the object way, where you specify the image url and the caption using the key-value notation:
JavaScript
var slides = [
{
image: 'photo-1.jpg',
caption: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit'
},
{
image: 'photo-2.jpg',
caption: 'Excepteur sint occaecat cupidatat non proident'
}
];
$('blinds').floom(slides, {
axis: 'vertical'
});
HTML
<div id="blinds"></div>
The second one is by simply passing a element collection, ie. $$('#blinds img'), where the passed element has to be the actual image collection. In this scenario the caption is the elements title attribute:
JavaScript
$('blinds').floom($$('#blinds img'), {
axis: 'vertical'
});
HTML
<div id="blinds">
<img title="Description 0" alt="" src="nature-photo0.jpg" />
<img title="Description 1" alt="" src="nature-photo1.jpg" />
<img title="Description 2" alt="" src="nature-photo2.jpg" />
<img title="Description 3" alt="" src="nature-photo3.jpg" />
<img title="Description 4" alt="" src="nature-photo4.jpg" />
</div>
Options
All options have default values assigned, hence are optional.
Version 1.0
- prefix: (str) class prefix for dynamically created elements. Defaults to floom
- amount: (int) amount of blinds. Defaults to 24
- animation: (int) animation duration for each blind (slice). Defaults to 70
- interval: (int) the interval between slide change. Defaults to 8000
- axis: (str) either horizontal or vertical. Defaults to vertical
- progressbar: (bool) show the progress bar. Defaults to true
- captions: (bool) show the captions. Defaults to true
- captionsFxIn: (obj) extend morph-in
- captionsFxOut: (obj) extend morph-out
- slidesBase: (str) the directory where to look for images/slides
- sliceFxIn: (obj) extend morph-in
- onSlideChange: fires on slide change
- onPreload: fires on slides preload (once, on script initialization)
- onFirst: fires when at the first slide
- onLast: fires when at the last slide

