Thumbnails must be the same height to make slider work correctly. For example, in the attached skins, the height of each thumbnail is 264px, width has no importance. If you want to change this value, you will also need to change the height of the slider in the CSS-skin file.
Import this libraries:
CSS:
Don't forget about skin image:
Create gallery with the group of links:
<div class="ion-image-slider" id="mySlider"> <a href="link to large image 1"><img src="link to thumbnail 1" data-caption="Image name, if have one" /></a> <a href="link to large image 2"><img src="link to thumbnail 2" /></a> ... <a href="link to large image N"><img src="link to thumbnail N" data-caption="One more name" /></a> </div>
Initialize slider:
$("#mySlider").ionImageSlider();
Or initialize slider with custom settings:
$("#mySlider").ionImageSlider({ zoomText: "Увеличить", // text near zoom icon; set "", if don't need startFrom: 0, // # of start picture slideShow: true, // enable slide show slideShowDelay: 7 // pause between picture change (if slide show is on) });
Property | Default | Description |
---|---|---|
zoomText | "zoom" | Optional property, set custom text near zoom icon or remove it |
startFrom | 0 | Optional property, set slider start image |
slideShow | true | Optional property, enable slide show |
slideShowDelay | 7 | Optional property, pause between picture change (if slide show is on) in seconds |