Download Demo
Skidder is a jQuery slideshow pugin that supports centering, swiping and responsive scaling.
Features
- optional paging
- optional cycling
- optional centering
- optional image scaling, also on resize
- iOS-like swiping on touch devices
- works with: Chrome, Firefox, Safari, IE8+ …
<link rel= "stylesheet" href= "../src/jquery.skidder.css" > <script type= "text/javascript" src= "https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" ></script> <script src= "../src/jquery.skidder.js" ></script> |
<div class = "slideshow" style= "display: none;" > <div class = "slide" ><img src= "1.jpg" ></div> <div class = "slide" ><img src= "2.jpg" ></div> <div class = "slide" ><img src= "3.jpg" ></div> </div> |
$( '.slideshow' ).skidder(); |
$('.slideshow').each( function() { var $slideshow = $(this); $slideshow.imagesLoaded( function() { $slideshow.skidder(); }); });
4. OPTIONS
Option | Description |
---|---|
slideClass | Default: ‘.slide’ |
scaleImages | Scales widest image to maxSlideWidth. Adjusts slideshow height accordingly. Requires images! Default: false |
maxSlideWidth | Scale widest image to this width if scaleImages == true. Default: 800 |
paging | Creates a clickable and stylable paging dot for each slide. Default: true |
swiping | Enable swiping on touch device. Default: true |
leftaligned | Set to true if you don’t want your slideshow centered. (true = buggy!) Default: false |
cycle | Set to false if you don’t want your slideshow to wrap around (false = buggy!).Default: true |
jumpback | In non-cycling mode jumpback will display a ‘return to first slide’ arrow at the last slide. Default: false |
speed | Transition speed. Default: 400 |
autoplay | _Default: false |
interval | Autoplay interval _Default: 4000 |
afterSliding | Define if you need a callback function |
$(‘.slideshow’).skidder(‘resize’);
You will want to debounce this to save some trees
No comments:
Post a Comment