JiSlider
Simple Image Slider - jQuery Plugin
JiSlider is a simple jQuery Plugin to create a Image Slider. You can modify settings to make the slider for your taste. It has been tested on Safari 8, Chrome 44, Firefox 38.
Simple Usage
<!DOCTYPE html> <html> <head> <link rel="stylesheet" href="/path/to/JiSlider.css"> </head> <body> <div id="JiSlider" class="JiSlider"> <!-- ul is required --> <ul> <li> <img src="img1.jpg"> </li> <li> <img src="img2.jpg"> </li> <li> <img src="img3.jpg"> </li> </ul> </div> <script src="/path/to/jquery.min.js"></script> <script src="/path/to/JiSlider.js"></script> <script> $(window).load(function () { $('#JiSlider').JiSlider(); }); </script> </body> </html>
Custom Settings
Passing a associative array in JiSlider method you can change JiSlider the way you like!
You can modify:
- auto (type: Boolean)
- This value represents whether the animation will be automatic or not.
- Default value: true
- start (type: Number)
- This value represents start slide.
- Default value: 1
- time (type: Number)
- This value represents animation time in milliseconds.
- Default value: 600
- stay (type: Number)
- This value represents stay time in between animations in milliseconds.
- Default value: 3000
- controller (type: Boolean)
- This value represents where the controller will appear or not
- Default value: true
- color (type: String)
- This value represents color of controller.
- Default value: #fff
- easing (type: String)
- This value represents easing of animation.
- Default value: ease
- CSS Transition easing property
- reverse (type: Boolean)
- This value represents whether animation direction will be reversed or not
- Default value: false
Sample Usage
$('#JiSlider').JiSlider({ color: '#fff', start: 3, reverse: true, });