Making a responsive slide show from my personal favorite slide show. Resize this page and see what happens.
Check out the responsiveslideshow.js, simply loot the code, Pager already ready for your pagination needs, uncomment and go :)
Wouldn't it be great if HTML didn't need hacks? To ensure cross-browser compatibility (IE7+), an invisible PNG is required.
Tested on Android 2.2+ and iOS4+. It even responds to device rotations. Performamce of slide show transitions vary device to device.
Not all slide show are created equal, fortunately JQuery Cycle is exceptional and includes a containerResize property. This allows the slideshow to resize. However, scaling a slideshow and having it maintain its height gets trickier. This project assumes the following:
- <div class="slidecontainer">
- <id="slideshow" class="fullwidth">
- <img src="img/slideimage1.jpg" width="100%">
- <img src="img/slideimage2.jpg" width="100%">
- <img src="img/slideimage3.jpg" width="100%">
- <div>
- <img src="img/blank.png" width="100%">
- <div>
The Responsive Slideshow JS includes a imageresize(); function grabs the height of any div within the slide show with the class of "slide1", and scales according to its height.