This time I will share jQuery Plugin and tutorial about Super Simple Fading Slideshow For jQuery – skippr, hope it will help you in programming stack.
skippr is a simple, lightweight and easy to use jQuery slideshow plugin with following features:
- Fully responsive.
- Auto resize and center the image on page resized.
- Bubble, block and arrow navigation.
- Cycle through slideshow DIVs with a cross-fade effect.
- Support any Html elements not only images.
How to use it:
1. Include the required CSS file in the head section of the document.
1 |
< link href = "css/jquery.skippr.css" rel = "stylesheet" type = "text/css" > |
2. Include the jQuery library and jQuery skippr plugin’s script at the bottom of the document.
2 |
< script src = "js/jquery.skippr.js" ></ script > |
3. Create content DIVs for the slideshow. Use background-image
CSS property to specify the background images of the DIVs to create a background image slideshow.
2 |
< div style = "background-image: url(img/1.jpg)" ></ div > |
3 |
< div style = "background-image: url(img/2.jpg)" ></ div > |
4 |
< div style = "background-image: url(img/3.jpg)" ></ div > |
5 |
< div style = "background-image: url(img/4.jpg)" ></ div > |
6 |
< div style = "background-image: url(img/5.jpg)" ></ div > |
4. Call the plugin on the parent element and you’re done.
02 |
$(document).ready( function () { |
03 |
$( "#random" ).skippr(); |
06 |
easing: 'easeOutQuart' , |
08 |
childrenElementType : 'div' , |
11 |
autoPlayDuration: 5000, |
12 |
keyboardOnAlways: true , |
Change log:
2015-12-09
- fix duplicate timer issue
2014-08-13
2014-06-07
- Fixed bugs, solidified separate ecosystems for multiple instantiations of the skippr method.
2014-05-31
- Enabled arrow key navigation and hidden arrow functionality
2014-05-29
- Fixed nav-bar fast-click bug
2014-05-27
2014-05-21
- Added slide as default transition
2014-05-11
2014-05-11
- ADD: autoplay functionality
2014-05-10
- ADD: arrow navigation functionality
This awesome jQuery plugin is developed by austenpayan. For more Advanced Usages, please check the demo page or visit the official website.