This is a standard image slider with autoplay, loop, arrows, pagination, and centered mode enabled.
new SuperSlider("#imageSlider", {
autoplay:true,
speed:2500,
loop:true,
slidesPerView:{mobile:1, tablet:2, desktop:3},
spaceBetween:{mobile:10, tablet:15, desktop:20},
arrows:true,
centered:true,
freeMode:true
});
This slider uses HTML boxes instead of images. Shows that SuperSlider works with any HTML content.
new SuperSlider("#boxSlider", {
autoplay:true,
speed:4000,
loop:true,
slidesPerView:{mobile:1, tablet:2, desktop:3},
spaceBetween:{mobile:10, tablet:15, desktop:20},
arrows:true,
centered:false,
freeMode:true
});
Basic HTML structure required for SuperSlider:
<div class="super-slider" id="sliderID">
<div class="super-slider-wrapper">
<div class="super-slide">Your Content</div>
<div class="super-slide">Your Content</div>
</div>
<div class="super-slider-pagination"></div>
<div class="super-slider-arrows"></div>
</div>
Notes: