Javascript image slider

A simple but useful image slider plugin.

Basic slider example




Slider example source code

<html>
<script src="https://jsuites.net/v4/jsuites.js"></script>
<link rel="stylesheet" href="https://jsuites.net/v4/jsuites.css" type="text/css" />

<div id="slider">
<img src='/templates/v4/img/car.jpeg'>
<img src='/templates/v4/img/car2.jpeg'>
<img src='/templates/v4/img/car3.jpeg'>
</div>

<br>

<button id="open-slider" type="button" class="jbutton dark">Open the slider</button>

<script type='text/loader'>
jSuites.slider(document.getElementById('slider'), {
    grid: true
});

document.getElementById('open-slider').addEventListener('click', function() {
    slider.open();
});
</script>
</html>

Quick reference

Go to the Quick reference

More examples