Hello dear readers! Welcome back to another edition of our tutorial on jQuery. In this tutorial guide, we are going to be discussing about the jQuery Slideshow plugin.
Slideshow is a jQuery plugin used for quick and easy implementation of slide show of images or videos into your website.
Slideshow is a jQuery plugin used for quick and easy implementation of slide show of images or videos into your website.
Example
The following below is a simple Slideshow.js example -
<!DOCTYPE html lang = "en">
<html xmlns = "https://www.w3.org/1999/xhtml">
<head>
<meta charset = "utf-8">
<meta http-equiv = "content-type" content = "text/html" />
<meta name = "viewport" content = "width = device-width,
initial-scale = 1">
<title>Slideshow.js Example</title>
<link type = "text/css" rel = "stylesheet" media = "screen"
href = "css/supersized.css" />
<link type = "text/css" rel = "stylesheet" media = "screen"
href = "theme/supersized.shutter.css" />
<script type = "text/javascript"
src = "https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js">
</script>
<script type = "text/javascript" src = "js/jquery.easing.min.js"></script>
<script type = "text/javascript" src = "js/supersized.3.2.7.min.js"></script>
<script type = "text/javascript" src = "theme/supersized.shutter.min.js"></script>
<script type = "text/javascript">
jQuery( function( $ ) {
$.supersized( {
slideshow : 1 ,
autoplay : 1 ,
start_slide : 1 ,
stop_loop : 0 ,
random : 0 ,
slide_interval : 2000 ,
transition : 6 ,
transition_speed : 1000 ,
new_window : 1 ,
pause_hover : 0 ,
keyboard_nav : 1 ,
performance : 1 ,
image_protect : 1 ,
min_width : 0 ,
min_height : 0 ,
vertical_center : 1 ,
horizontal_center : 1 ,
fit_always : 0 ,
fit_portrait : 1 ,
fit_landscape : 0 ,
slide_links : 'blank' ,
thumb_links : 1 ,
thumbnail_navigation : 0 ,
slides :
[
{
Image: 'https://buildinternet.s3.amazonaws.com/projects/supersized/3.2/slides/kazvan-1.jpg' ,
title: 'Sample demo' ,
thumb: 'https://buildinternet.s3.amazonaws.com/projects/supersized/3.2/thumbs/kazvan-1.jpg' ,
url: 'https://www.webdesigntutorialz.com'
},
{
Image: 'https://buildinternet.s3.amazonaws.com/projects/supersized/3.2/slides/kazvan-3.jpg' ,
title: 'Sample demo' ,
thumb: 'https://buildinternet.s3.amazonaws.com/projects/supersized/3.2/thumbs/kazvan-3.jpg' ,
url: 'https://www.webdesigntutorialz.com'
},
{
Image: 'https://buildinternet.s3.amazonaws.com/projects/supersized/3.2/slides/wojno-1.jpg' ,
title: 'Sample demo' ,
thumb: 'https://buildinternet.s3.amazonaws.com/projects/supersized/3.2/thumbs/wojno1.jpg' ,
url: 'https://www.webdesigntutorialz.com'
},
{
Image: 'https://buildinternet.s3.amazonaws.com/projects/supersized/3.2/slides/wojno-2.jpg' ,
title: 'Sample demo' ,
thumb: 'https://buildinternet.s3.amazonaws.com/projects/supersized/3.2/thumbs/wojno-2.jpg' ,
url: 'https://www.webdesigntutorialz.com'
},
{
Image: 'https://buildinternet.s3.amazonaws.com/projects/supersized/3.2/slides/wojno-3.jpg' ,
title: 'Sample demo' ,
thumb: 'https://buildinternet.s3.amazonaws.com/projects/supersized/3.2/thumbs/wojno-3.jpg' ,
url: 'https://www.webdesigntutorialz.com'
},
] ,
progress_bar : 1 ,
mouse_scrub : 0
} );
} );
</script>
<style type = "text/css">
ul#demo-block { margin: 0 12px 12px 12px; }
ul#demo-block li { margin: 0 0 10px 0; padding: 10px; display: inline;
float: left; clear: both; color: #aaa; background: url( 'img/nova.jpg' );
font: 10px Arial, sans-serif; }
ul#demo-block li a{ color: #eee; font-weight: bold; }
</style>
</head>
<body>
<div id = "prevthumb"></div>
<div id = "nextthumb"></div>
<a id = "prevslide" class = "load-item"></a>
<a id = "nextslide" class = "load-item"></a>
<div id = "thumb-tray" class = "load-item">
<div id = "thumb-back"></div>
<div id = "thumb-forward"></div>
</div>
<div id = "progress-back" class = "load-item">
<div id = "progress-bar"></div>
</div>
<div id = "controls-wrapper" class = "load-item">
<div id = "controls"></div>
<a id = "play-button"><img id = "pauseplay" src = "/image/pause.jpg" /></a>
<div id = "slidecounter">
<span class = "slidenumber"></span>
<span class = "totalslides"></span>
</div>
<div id = "slidecaption"></div>
<a id = "tray-button"><img id = "tray-arrow" src = "/img/button-tray-up.jpg" /></a>
<ul id = "slide-list"></ul>
</div>
</div>
</body>
</html>
<html xmlns = "https://www.w3.org/1999/xhtml">
<head>
<meta charset = "utf-8">
<meta http-equiv = "content-type" content = "text/html" />
<meta name = "viewport" content = "width = device-width,
initial-scale = 1">
<title>Slideshow.js Example</title>
<link type = "text/css" rel = "stylesheet" media = "screen"
href = "css/supersized.css" />
<link type = "text/css" rel = "stylesheet" media = "screen"
href = "theme/supersized.shutter.css" />
<script type = "text/javascript"
src = "https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js">
</script>
<script type = "text/javascript" src = "js/jquery.easing.min.js"></script>
<script type = "text/javascript" src = "js/supersized.3.2.7.min.js"></script>
<script type = "text/javascript" src = "theme/supersized.shutter.min.js"></script>
<script type = "text/javascript">
jQuery( function( $ ) {
$.supersized( {
slideshow : 1 ,
autoplay : 1 ,
start_slide : 1 ,
stop_loop : 0 ,
random : 0 ,
slide_interval : 2000 ,
transition : 6 ,
transition_speed : 1000 ,
new_window : 1 ,
pause_hover : 0 ,
keyboard_nav : 1 ,
performance : 1 ,
image_protect : 1 ,
min_width : 0 ,
min_height : 0 ,
vertical_center : 1 ,
horizontal_center : 1 ,
fit_always : 0 ,
fit_portrait : 1 ,
fit_landscape : 0 ,
slide_links : 'blank' ,
thumb_links : 1 ,
thumbnail_navigation : 0 ,
slides :
[
{
Image: 'https://buildinternet.s3.amazonaws.com/projects/supersized/3.2/slides/kazvan-1.jpg' ,
title: 'Sample demo' ,
thumb: 'https://buildinternet.s3.amazonaws.com/projects/supersized/3.2/thumbs/kazvan-1.jpg' ,
url: 'https://www.webdesigntutorialz.com'
},
{
Image: 'https://buildinternet.s3.amazonaws.com/projects/supersized/3.2/slides/kazvan-3.jpg' ,
title: 'Sample demo' ,
thumb: 'https://buildinternet.s3.amazonaws.com/projects/supersized/3.2/thumbs/kazvan-3.jpg' ,
url: 'https://www.webdesigntutorialz.com'
},
{
Image: 'https://buildinternet.s3.amazonaws.com/projects/supersized/3.2/slides/wojno-1.jpg' ,
title: 'Sample demo' ,
thumb: 'https://buildinternet.s3.amazonaws.com/projects/supersized/3.2/thumbs/wojno1.jpg' ,
url: 'https://www.webdesigntutorialz.com'
},
{
Image: 'https://buildinternet.s3.amazonaws.com/projects/supersized/3.2/slides/wojno-2.jpg' ,
title: 'Sample demo' ,
thumb: 'https://buildinternet.s3.amazonaws.com/projects/supersized/3.2/thumbs/wojno-2.jpg' ,
url: 'https://www.webdesigntutorialz.com'
},
{
Image: 'https://buildinternet.s3.amazonaws.com/projects/supersized/3.2/slides/wojno-3.jpg' ,
title: 'Sample demo' ,
thumb: 'https://buildinternet.s3.amazonaws.com/projects/supersized/3.2/thumbs/wojno-3.jpg' ,
url: 'https://www.webdesigntutorialz.com'
},
] ,
progress_bar : 1 ,
mouse_scrub : 0
} );
} );
</script>
<style type = "text/css">
ul#demo-block { margin: 0 12px 12px 12px; }
ul#demo-block li { margin: 0 0 10px 0; padding: 10px; display: inline;
float: left; clear: both; color: #aaa; background: url( 'img/nova.jpg' );
font: 10px Arial, sans-serif; }
ul#demo-block li a{ color: #eee; font-weight: bold; }
</style>
</head>
<body>
<div id = "prevthumb"></div>
<div id = "nextthumb"></div>
<a id = "prevslide" class = "load-item"></a>
<a id = "nextslide" class = "load-item"></a>
<div id = "thumb-tray" class = "load-item">
<div id = "thumb-back"></div>
<div id = "thumb-forward"></div>
</div>
<div id = "progress-back" class = "load-item">
<div id = "progress-bar"></div>
</div>
<div id = "controls-wrapper" class = "load-item">
<div id = "controls"></div>
<a id = "play-button"><img id = "pauseplay" src = "/image/pause.jpg" /></a>
<div id = "slidecounter">
<span class = "slidenumber"></span>
<span class = "totalslides"></span>
</div>
<div id = "slidecaption"></div>
<a id = "tray-button"><img id = "tray-arrow" src = "/img/button-tray-up.jpg" /></a>
<ul id = "slide-list"></ul>
</div>
</div>
</body>
</html>
RECOMMENDED POST: jQuery Progressbar Plugin
Alright guys! This is where we are rounding up for this tutorial post. In our next tutorial guide, we are going to be discussing about the Drawsvg.js Plugin.
Do feel free to ask your questions where necessary and i will attend to them as soon as possible. If this tutorial was helpful to you, you can use the share button to share this tutorial.
Follow us on our various social media platforms to stay updated with our latest tutorials. You can also subscribe to our newsletter in order to get our tutorials delivered directly to your emails.
Thanks for reading and bye for now.
Do feel free to ask your questions where necessary and i will attend to them as soon as possible. If this tutorial was helpful to you, you can use the share button to share this tutorial.
Follow us on our various social media platforms to stay updated with our latest tutorials. You can also subscribe to our newsletter in order to get our tutorials delivered directly to your emails.
Thanks for reading and bye for now.