#slidejs
Simple fade slider for web.
##Demo
Click here to see real world example.
##Prerequisites
- jQuery 1.0 or higher.
- Slide image must be named
0
ton
(number of slide).
##Install and Configuration
###Installation
Add slidejs.js
file to your HTML file will take global function called slidejs
.
###API
- Example
<img id="slide1">
<img id="slide0">
<script>
slidejs({
index: 13,
path: './img/slideshow/'
//more configuration to go.
});
</script>
A function slidejs
take single object as an argument. In this object, we can configure required and optional settings. The Italic font is special consideration of value.
-
index
(Required, Number) : Number of image to slide. Must be start with0
. -
path
(Required, String) : URL of slide image. Must be ended with/
( ex../img/slideshow/
). -
extension
(Optional, String) : Extension of image. Default to.jpg
. -
slide0
(Optional, String) : Name of DOM Element for slide. Default to#slide0
. -
slide1
(Optional, String) : Name of DOM Element for another slide. Default to#slide1
. -
width
(Optional, String) : Width of slide image. Default toauto
. -
height
(Optional, String) : Height of slide image. Default toauto
. -
time
(Optional, Number) : Time of fading animation. Default to600
ms. -
duration
(Optional, Number) : Presenting time of slide. Default to6000
ms. -
reverse
(Optional, Boolean) : Reverse option of slide. Iftrue
slide is advancingn
to0
. Default tofalse
.
###Additional DOM Configuration
slidejs require two DOM element to present slide. Slide you want to present first, have to located downside of another. check following example.
<img id="slide1">
<img id="slide0">
##Contributing
slidejs is just starting framework for helps to make simple fade slide in web.
You may feel fade slide is really great way to express story like this.
Feel free to make pull request for any improvements.
##License
MIT