1 - After downloading item from CodeCanyon you will find sz-slider folder in main zip file.
2 - Upload sz-slider folder on your website server, theme or App folders.
After uploading sz-slider folder, you would have to include CSS and JS files to the website or app. You need to place all the files at the end of previously added css and js files.
<!DOCTYPE html>
lang="en"
...
href="your/path/to/sz-slider/css/sz-slider.css" rel="stylesheet"
...
src="your/path/to/sz-slider/js/sz-slider.js"
If you are already using Bootstrap 5 Carousel in your projects then there is no need to re-write HTML mark-up. Just follow the following guideline:
<!--
After making above changes Carousel will look like the following
-->
<!-- Slider Wrapper -->
id="mySliderId" class="carousel sz-slider" data-height="auto"
<!-- indicators -->
class="carousel-indicators"
data-bs-slide-to="0" data-bs-target="#mySliderId" class="active"
data-bs-slide-to="1" data-bs-target="#mySliderId"
data-bs-slide-to="2" data-bs-target="#mySliderId"
<!-- Slides Wrapper -->
class="carousel-inner"
<!-- Slide 1 -->
class="carousel-item active"
<!-- Slide 2 -->
class="carousel-item"
<!-- Slide 3 -->
class="carousel-item"
<!-- Left Button -->
href="#mySliderId" class="carousel-control-btn carousel-control-prev"
class="carousel-control-prev-icon"
<!-- Right Button -->
href="#mySliderId" class="carousel-control-btn carousel-control-next"
class="carousel-control-next-icon"
If you are already using Bootstrap 4 Carousel in your projects then there is no need to re-write HTML mark-up. Just follow the following guideline:
<!--
After making above changes Carousel will look like the following
-->
<!-- Slider Wrapper -->
id="mySliderId" class="carousel sz-slider" data-height="auto"
<!-- indicators -->
class="carousel-indicators"
data-target="#mySliderId" class="active"
data-target="#mySliderId"
data-target="#mySliderId"
<!-- Slides Wrapper -->
class="carousel-inner"
<!-- Slide 1 -->
class="carousel-item active"
<!-- Slide 2 -->
class="carousel-item"
<!-- Slide 3 -->
class="carousel-item"
<!-- Left Button -->
href="#mySliderId" class="carousel-control-btn carousel-control-prev"
class="carousel-control-prev-icon"
<!-- Right Button -->
href="#mySliderId" class="carousel-control-btn carousel-control-next"
class="carousel-control-next-icon"
If you are already using Bootstrap 3 Carousel in your projects then there is no need to re-write HTML mark-up. Just follow the following guideline:
<!--
After making above changes Carousel will look like the following
-->
<!-- Slider Wrapper -->
id="mySliderId" class="carousel sz-slider" data-height="auto"
<!-- indicators -->
class="carousel-indicators"
data-target="#mySliderId" class="active"
data-target="#mySliderId"
data-target="#mySliderId"
<!-- Slides Wrapper -->
class="carousel-inner"
<!-- Slide 1 -->
class="item active"
<!-- Slide 2 -->
class="item"
<!-- Slide 3 -->
class="item"
<!-- Left Button -->
href="#mySliderId" class="left carousel-control"
class="glyphicon glyphicon-chevron-left"
<!-- Right Button -->
href="#mySliderId" class="right carousel-control"
class="glyphicon glyphicon-chevron-right"
After including CSS and JS files as we have already mentioned in above section. Use the following HTML mark-up in your project for basic slider.
<!-- Slider Wrapper -->
id="mySliderId" class="carousel sz-slider" data-width="100%" data-height="auto"
<!-- If we need indicators -->
class="carousel-indicators"
data-bs-slide-to="0" data-bs-target="#mySliderId" class="active"
data-bs-slide-to="1" data-bs-target="#mySliderId"
data-bs-slide-to="2" data-bs-target="#mySliderId"
<!-- Slides Wrapper -->
class="carousel-inner"
<!-- Slide 1 -->
class="carousel-item active"
<!-- If we need background image -->
src="your/image/url/01.png" alt="image 01" class="sz-bg-img"
<!-- All other elements will go here -->
Slide 1 data like image, text etc.
<!-- Slide 2 -->
class="carousel-item"
<!-- If we need background image -->
src="your/image/url/02.png" alt="image 02" class="sz-bg-img"
<!-- All other elements will go here -->
Slide 2 data like image, text etc.
<!-- Slide 3 -->
class="carousel-item"
<!-- If we need background image -->
src="your/image/url/03.png" alt="image 03" class="sz-bg-img"
<!-- All other elements will go here -->
Slide 3 data like image, text etc.
<!-- Left Button -->
href="#mySliderId" class="carousel-control-btn carousel-control-prev"
class="carousel-control-prev-icon"
<!-- Right Button -->
href="#mySliderId" class="carousel-control-btn carousel-control-next"
class="carousel-control-next-icon"
<!-- If we need pagination -->
class="carousel-item-number"
<!-- Number Of Current Slide -->
class="carousel-item-single"
<!-- Divider -->
/
<!-- Total Numbers Of Slides -->
class="carousel-item-length"
After including CSS and JS files as we have already mentioned in above section. Use the following HTML mark-up in your project for basic slider.
<!-- Slider Wrapper -->
id="mySliderId" class="carousel sz-slider" data-width="100%" data-height="auto"
<!-- If we need indicators -->
class="carousel-indicators"
data-target="#mySliderId" class="active"
data-target="#mySliderId"
data-target="#mySliderId"
<!-- Slides Wrapper -->
class="carousel-inner"
<!-- Slide 1 -->
class="carousel-item active"
<!-- If we need background image -->
src="your/image/url/01.png" alt="image 01" class="sz-bg-img"
<!-- All other elements will go here -->
Slide 1 data like image, text etc.
<!-- Slide 2 -->
class="carousel-item"
<!-- If we need background image -->
src="your/image/url/02.png" alt="image 02" class="sz-bg-img"
<!-- All other elements will go here -->
Slide 2 data like image, text etc.
<!-- Slide 3 -->
class="carousel-item"
<!-- If we need background image -->
src="your/image/url/03.png" alt="image 03" class="sz-bg-img"
<!-- All other elements will go here -->
Slide 3 data like image, text etc.
<!-- Left Button -->
href="#mySliderId" class="carousel-control-btn carousel-control-prev"
class="carousel-control-prev-icon"
<!-- Right Button -->
href="#mySliderId" class="carousel-control-btn carousel-control-next"
class="carousel-control-next-icon"
<!-- If we need pagination -->
class="carousel-item-number"
<!-- Number Of Current Slide -->
class="carousel-item-single"
<!-- Divider -->
/
<!-- Total Numbers Of Slides -->
class="carousel-item-length"
<!-- Slider Wrapper -->
id="mySliderId" class="carousel sz-slider" data-width="100%" data-height="auto"
<!-- If we need indicators -->
class="carousel-indicators"
data-target="#mySliderId" class="active"
data-target="#mySliderId"
data-target="#mySliderId"
<!-- Slides Wrapper -->
class="carousel-inner"
<!-- Slide 1 -->
class="item active"
<!-- If we need background image -->
src="your/image/url/01.png" alt="image 01" class="sz-bg-img"
<!-- All other elements will go here -->
Slide 1 data like image, text etc.
<!-- Slide 2 -->
class="item"
<!-- If we need background image -->
src="your/image/url/02.png" alt="image 02" class="sz-bg-img"
<!-- All other elements will go here -->
Slide 2 data like image, text etc.
<!-- Slide 3 -->
class="item"
<!-- If we need background image -->
src="your/image/url/03.png" alt="image 03" class="sz-bg-img"
<!-- All other elements will go here -->
Slide 3 data like image, text etc.
<!-- Left Button -->
href="#mySliderId" class="left carousel-control"
class="glyphicon glyphicon-chevron-left"
<!-- Right Button -->
href="#mySliderId" class="right carousel-control"
class="glyphicon glyphicon-chevron-right"
<!-- If we need pagination -->
class="carousel-item-number"
<!-- Number Of Current Slide -->
class="carousel-item-single"
<!-- Divider -->
/
<!-- Total Numbers Of Slides -->
class="carousel-item-length"
Use data-type attribute to select slider type. Default value is : slider
<!-- For Single Item -->
id="mySliderId" class="carousel sz-slider" data-type="slider"
<!-- For Multiple Items -->
id="mySliderId" class="carousel sz-slider" data-type="carousel"
Use data-width attribute for slider width size. You can assign a value in length units like px, %, rem, vw etc. Default value is : 100%
<!-- Using data-width -->
id="mySliderId" class="carousel sz-slider" data-width="100%"
<!-- If you want to use this method then delete data-width attribute -->
#mySliderId.carousel
width: 100%;
Use data-height attribute for slider height size. You can assign a value in length units like px, %, rem, vh etc. Default value is : inherit
<!-- Using data-height -->
id="mySliderId" class="carousel sz-slider" data-height="500px"
<!-- Assign "window" value to data-height attribute -->
id="mySliderId" class="carousel sz-slider" data-height="window"
<!-- Assign "auto" value to data-height attribute -->
id="mySliderId" class="carousel sz-slider" data-height="auto"
<!-- If you want to use this method then delete data-height attribute
Also use !important to replace the default values -->
#mySliderId.carousel
height: 100% !important;
Use data-background attribute to make an image slider or a hero slider. Default value is : hero
Also Use data-image attribute for images size. Default value is : cover
<!-- Assign "image" value to data-background attribute -->
id="mySliderId" class="carousel sz-slider" data-background="image"
<!--
1st value is image width.
Add a white space then add 2nd value
2nd value is image height.
You can assign a value in length units like px, %, rem, vw, vh etc.
-->
id="mySliderId" class="carousel sz-slider" data-background="image" data-image="250px 300px"
<!-- Assign "hero" value to data-background attribute -->
id="mySliderId" class="carousel sz-slider" data-background="hero"
<!--
1st value is image width.
Add a white space then add 2nd value
2nd value is image height.
You can also use all background-size properties like auto, cover, contain, length or percentage.
-->
id="mySliderId" class="carousel sz-slider" data-background="hero" data-image="cover"
<!-- Use !important to replace the default values -->
#mySliderId.carousel > .carousel-inner > .carousel-item
background-position: center !important;
background-repeat: no-repeat !important;
background-attachment: scroll !important;
background-origin: padding-box !important;
Use data-animation attribute for slides animation effects. Default value is : dragX
<!-- Assign "dragX" value to data-animation attribute -->
id="mySliderId" class="carousel sz-slider" data-animation="dragX"
<!-- Assign "dragY" value to data-animation attribute -->
id="mySliderId" class="carousel sz-slider" data-animation="dragY"
<!-- Assign "swipeX" value to data-animation attribute -->
id="mySliderId" class="carousel sz-slider" data-animation="swipeX"
<!-- Assign "swipeY" value to data-animation attribute -->
id="mySliderId" class="carousel sz-slider" data-animation="swipeY"
<!-- Assign "fade" value to data-animation attribute -->
id="mySliderId" class="carousel sz-slider" data-animation="fade"
<!-- Assign "default" value to data-animation attribute -->
id="mySliderId" class="carousel sz-slider" data-animation="default"
<!--
1 - Assign "dragCoverX" value to "data-animation" attribute
2 - Assign numeric value to "data-space" attribute
-->
id="mySliderId" class="carousel sz-slider" data-animation="dragCoverX" data-space="1.7"
Use data-space attribute to increase or decrease the area of left, right Or Up, down slides to show. This attribute accept a number only. Default value is : 1.35
<!-- Assign value to data-space attribute -->
id="mySliderId" class="carousel sz-slider" data-animation="dragCoverX" data-space="1.7"
<!-- Slides Wrapper -->
class="carousel-inner"
<!-- Slide 1 -->
class="carousel-item active"
<!-- Create a child wrapper also -->
class="sz-wrapper"
Slide 1 data like image, text etc.
<!-- Slide 2 -->
class="carousel-item"
<!-- Create a child wrapper also -->
class="sz-wrapper"
Slide 2 data like image, text etc.
<!-- Slide 3 -->
class="carousel-item"
<!-- Create a child wrapper also -->
class="sz-wrapper"
Slide 3 data like image, text etc.
<!-- You can use value according to your requirements -->
#mySliderId.carousel > .carousel-inner > .carousel-item > .sz-wrapper
padding: 20px 20px;
<!--
1 - Assign "dragCoverY" value to "data-animation" attribute
2 - Assign numeric value to "data-space" attribute
-->
id="mySliderId" class="carousel sz-slider" data-animation="dragCoverY" data-space="1.7"
Use data-space attribute to increase or decrease the area of left, right Or Up, down slides to show. This attribute accept a number only. Default value is : 1.35
<!-- Assign value to data-space attribute -->
id="mySliderId" class="carousel sz-slider" data-animation="dragCoverY" data-space="1.7"
<!-- Slides Wrapper -->
class="carousel-inner"
<!-- Slide 1 -->
class="carousel-item active"
<!-- Create a child wrapper also -->
class="sz-wrapper"
Slide 1 data like image, text etc.
<!-- Slide 2 -->
class="carousel-item"
<!-- Create a child wrapper also -->
class="sz-wrapper"
Slide 2 data like image, text etc.
<!-- Slide 3 -->
class="carousel-item"
<!-- Create a child wrapper also -->
class="sz-wrapper"
Slide 3 data like image, text etc.
<!-- You can use value according to your requirements -->
#mySliderId.carousel > .carousel-inner > .carousel-item > .sz-wrapper
padding: 20px 20px;
<!--
1 - Assign "swipeCoverX" value to "data-animation" attribute
2 - Assign numeric value to "data-space" attribute
-->
id="mySliderId" class="carousel sz-slider" data-animation="swipeCoverX" data-space="1.7"
Use data-space attribute to increase or decrease the area of left, right Or Up, down slides to show. This attribute accept a number only. Default value is : 1.35
<!-- Assign value to data-space attribute -->
id="mySliderId" class="carousel sz-slider" data-animation="swipeCoverX" data-space="1.7"
<!-- Slides Wrapper -->
class="carousel-inner"
<!-- Slide 1 -->
class="carousel-item active"
<!-- Create a child wrapper also -->
class="sz-wrapper"
Slide 1 data like image, text etc.
<!-- Slide 2 -->
class="carousel-item"
<!-- Create a child wrapper also -->
class="sz-wrapper"
Slide 2 data like image, text etc.
<!-- Slide 3 -->
class="carousel-item"
<!-- Create a child wrapper also -->
class="sz-wrapper"
Slide 3 data like image, text etc.
<!-- You can use value according to your requirements -->
#mySliderId.carousel > .carousel-inner > .carousel-item > .sz-wrapper
padding: 20px 20px;
<!--
1 - Assign "swipeCoverY" value to "data-animation" attribute
2 - Assign numeric value to "data-space" attribute
-->
id="mySliderId" class="carousel sz-slider" data-animation="swipeCoverY" data-space="1.7"
Use data-space attribute to increase or decrease the area of left, right Or Up, down slides to show. This attribute accept a number only. Default value is : 1.35
<!-- Assign value to data-space attribute -->
id="mySliderId" class="carousel sz-slider" data-animation="swipeCoverY" data-space="1.7"
<!-- Slides Wrapper -->
class="carousel-inner"
<!-- Slide 1 -->
class="carousel-item active"
<!-- Create a child wrapper also -->
class="sz-wrapper"
Slide 1 data like image, text etc.
<!-- Slide 2 -->
class="carousel-item"
<!-- Create a child wrapper also -->
class="sz-wrapper"
Slide 2 data like image, text etc.
<!-- Slide 3 -->
class="carousel-item"
<!-- Create a child wrapper also -->
class="sz-wrapper"
Slide 3 data like image, text etc.
<!-- You can use value according to your requirements -->
#mySliderId.carousel > .carousel-inner > .carousel-item > .sz-wrapper
padding: 20px 20px;
<!--
1 - Assign "dragCover2X" value to "data-animation" attribute
2 - Assign numeric value to "data-space" attribute
3 - Assign numeric value to "data-cover-min" attribute for minimum scale
4 - Assign numeric value to "data-cover-max" attribute for maximum scale
-->
id="mySliderId" class="carousel sz-slider" data-animation="dragCover2X" data-space="1.7" data-cover-min="0.5" data-cover-max="1.2"
<!--
1 - Assign "dragCover2Y" value to "data-animation" attribute
2 - Assign numeric value to "data-space" attribute
3 - Assign numeric value to "data-cover-min" attribute for minimum scale
4 - Assign numeric value to "data-cover-max" attribute for maximum scale
-->
id="mySliderId" class="carousel sz-slider" data-animation="dragCover2Y" data-space="2" data-cover-min="0.7" data-cover-max="1"
<!--
1 - Assign "swipeCover2X" value to "data-animation" attribute
2 - Assign numeric value to "data-space" attribute
3 - Assign numeric value to "data-cover-min" attribute for minimum scale
4 - Assign numeric value to "data-cover-max" attribute for maximum scale
-->
id="mySliderId" class="carousel sz-slider" data-animation="swipeCover2X" data-space="1.7" data-cover-min="0.5" data-cover-max="1.2"
<!--
1 - Assign "swipeCover2Y" value to "data-animation" attribute
2 - Assign numeric value to "data-space" attribute
3 - Assign numeric value to "data-cover-min" attribute for minimum scale
4 - Assign numeric value to "data-cover-max" attribute for maximum scale
-->
id="mySliderId" class="carousel sz-slider" data-animation="swipeCover2Y" data-space="1.7" data-cover-min="0.5" data-cover-max="1.2"
<!--
1 - Assign "dragCover3X" value to "data-animation" attribute
2 - Assign numeric value to "data-space" attribute
3 - Assign numeric value to "data-cover-min" attribute for minimum rotate
4 - Assign numeric value to "data-cover-max" attribute for maximum rotate
-->
id="mySliderId" class="carousel sz-slider" data-animation="dragCover3X" data-space="2" data-cover-min="45" data-cover-max="0"
<!--
1 - Assign "dragCover3Y" value to "data-animation" attribute
2 - Assign numeric value to "data-space" attribute
3 - Assign numeric value to "data-cover-min" attribute for minimum rotate
4 - Assign numeric value to "data-cover-max" attribute for maximum rotate
-->
id="mySliderId" class="carousel sz-slider" data-animation="dragCover3Y" data-space="2" data-cover-min="45" data-cover-max="0"
<!--
1 - Assign "swipeCover3X" value to "data-animation" attribute
2 - Assign numeric value to "data-space" attribute
3 - Assign numeric value to "data-cover-min" attribute for minimum rotate
4 - Assign numeric value to "data-cover-max" attribute for maximum rotate
-->
id="mySliderId" class="carousel sz-slider" data-animation="swipeCover3X" data-space="2" data-cover-min="45" data-cover-max="0"
<!--
1 - Assign "swipeCover3Y" value to "data-animation" attribute
2 - Assign numeric value to "data-space" attribute
3 - Assign numeric value to "data-cover-min" attribute for minimum rotate
4 - Assign numeric value to "data-cover-max" attribute for maximum rotate
-->
id="mySliderId" class="carousel sz-slider" data-animation="swipeCover3Y" data-space="2" data-cover-min="45" data-cover-max="0"
<!--
1 - Assign "dragCover4X" value to "data-animation" attribute
2 - Assign numeric value to "data-space" attribute
3 - Assign numeric value to "data-cover-min" attribute for minimum flip
4 - Assign numeric value to "data-cover-max" attribute for maximum flip
5 - Assign numeric value to "data-cover-perspective" attribute for perspective
-->
id="mySliderId" class="carousel sz-slider" data-animation="dragCover4X" data-space="2" data-cover-min="45" data-cover-max="0" data-cover-perspective="400"
<!--
1 - Assign "dragCover4Y" value to "data-animation" attribute
2 - Assign numeric value to "data-space" attribute
3 - Assign numeric value to "data-cover-min" attribute for minimum flip
4 - Assign numeric value to "data-cover-max" attribute for maximum flip
5 - Assign numeric value to "data-cover-perspective" attribute for perspective
-->
id="mySliderId" class="carousel sz-slider" data-animation="dragCover4Y" data-space="2" data-cover-min="45" data-cover-max="0" data-cover-perspective="400"
<!--
1 - Assign "swipeCover4X" value to "data-animation" attribute
2 - Assign numeric value to "data-space" attribute
3 - Assign numeric value to "data-cover-min" attribute for minimum flip
4 - Assign numeric value to "data-cover-max" attribute for maximum flip
5 - Assign numeric value to "data-cover-perspective" attribute for perspective
-->
id="mySliderId" class="carousel sz-slider" data-animation="swipeCover4X" data-space="2" data-cover-min="45" data-cover-max="0" data-cover-perspective="400"
<!--
1 - Assign "swipeCover4Y" value to "data-animation" attribute
2 - Assign numeric value to "data-space" attribute
3 - Assign numeric value to "data-cover-min" attribute for minimum flip
4 - Assign numeric value to "data-cover-max" attribute for maximum flip
5 - Assign numeric value to "data-cover-perspective" attribute for perspective
-->
id="mySliderId" class="carousel sz-slider" data-animation="swipeCover4Y" data-space="2" data-cover-min="45" data-cover-max="0" data-cover-perspective="400"
<!--
1 - We are using "dragCover2X" value into "data-animation" attribute
2 - We are using "4" value into "data-space" attribute
3 - We are using "0.8" value into "data-cover-min" attribute
4 - We are using "1" value into "data-cover-max" attribute
-->
id="mySliderId" class="carousel sz-slider" data-animation="dragCover2X" data-space="4" data-cover-min="0.8" data-cover-max="1"
<!--
1 - We are using "dragCover2X" value into "data-animation" attribute
2 - We are using "4" value into "data-space" attribute
3 - We are using "1" value into "data-cover-min" attribute
4 - We are using "1.2" value into "data-cover-max" attribute
-->
id="mySliderId" class="carousel sz-slider" data-animation="dragCover2X" data-space="4" data-cover-min="1" data-cover-max="1.2"
<!-- Use !important to replace the default values -->
#mySliderId.carousel
height: 412px !important;
<!-- Use !important to replace the default values -->
#mySliderId.carousel > .carousel-inner
height: 100% !important;
padding-top: 35px !important;
<!-- Use !important to replace the default values -->
#mySliderId.carousel > .carousel-inner > .carousel-item
height: 90% !important;
<!-- Use !important to replace the default values -->
#mySliderId.carousel > .carousel-inner > .carousel-item .sz-wrapper
width: 100% !important;
height: 100% !important;
<!-- Use !important to replace the default values -->
#mySliderId.carousel > .carousel-inner > .carousel-item .sz-wrapper > img
width: 100% !important;
height: 100% !important;
<!--
Adding "class" value into "data-animation" attribute
-->
id="mySliderId" class="carousel sz-slider" data-animation="class"
<!-- Slides Wrapper -->
class="carousel-inner"
<!-- Slide 1 -->
class="carousel-item active" data-slides-in="fdInTp:2000:animEasein"
src="your/image/url/01.png" alt="image 01" class="sz-bg-img"
<!-- All other elements will go here -->
Slide 1 data like image, text etc.
<!-- End of Slide 1 -->
<!-- Slide 2 -->
class="carousel-item" data-slides-in="sclInXRgt:1000:animEaseout"
src="your/image/url/02.png" alt="image 02" class="sz-bg-img"
<!-- All other elements will go here -->
Slide 2 data like image, text etc.
<!-- End of Slide 2 -->
<!-- Slide 3 -->
class="carousel-item" data-slides-in="sclInCntr:700:animEase"
src="your/image/url/03.png" alt="image 03" class="sz-bg-img"
<!-- All other elements will go here -->
Slide 3 data like image, text etc.
<!-- End of Slide 3 -->
<!-- End of Slides Wrapper -->
<!-- Slides Wrapper -->
class="carousel-inner"
<!-- Slide 1 -->
class="carousel-item active"
data-slides-in="fdInTp:2000:animEasein"
data-slides-out="fdOutBtm:500:animEaseinout"
src="your/image/url/01.png" alt="image 01" class="sz-bg-img"
<!-- All other elements will go here -->
Slide 1 data like image, text etc.
<!-- End of Slide 1 -->
<!-- Slide 2 -->
class="carousel-item"
data-slides-in="tltInTpRgt:3000:animLinear"
data-slides-out="boncOutTp:5000:animEaseinsine"
src="your/image/url/02.png" alt="image 02" class="sz-bg-img"
<!-- All other elements will go here -->
Slide 2 data like image, text etc.
<!-- End of Slide 2 -->
<!-- Slide 3 -->
class="carousel-item"
data-slides-in="folshIn:1200:animEaseoutquad"
data-slides-out="holeOut:1700:animSpeedy"
src="your/image/url/03.png" alt="image 03" class="sz-bg-img"
<!-- All other elements will go here -->
Slide 3 data like image, text etc.
<!-- End of Slide 3 -->
<!-- End of Slides Wrapper -->
Use data-duration attribute to increase or decrease transition duration of slides. You can assign a value in milliseconds only but without any unit. Default value is : 600
<!-- Assign value to data-duration attribute -->
id="mySliderId" class="carousel sz-slider" data-duration="300"
Use data-intervals attribute for slider cycle. Default value is : no
<!-- Assign "no" value to data-intervals attribute -->
id="mySliderId" class="carousel sz-slider" data-intervals="no"
<!-- Assign "yes" value to data-intervals attribute -->
id="mySliderId" class="carousel sz-slider" data-intervals="yes"
<!-- Slides Wrapper -->
class="carousel-inner"
<!-- Assign value to data-item-interval attribute -->
class="carousel-item active" data-item-interval="2000" Slide 1 data like image, text etc.
<!-- Assign value to data-item-interval attribute -->
class="carousel-item" data-item-interval="3000" Slide 2 data like image, text etc.
<!-- Assign value to data-item-interval attribute -->
class="carousel-item" data-item-interval="4000" Slide 3 data like image, text etc.
Use data-timing attribute for slides transition timing function. Default value is : ease
<!-- Assign value to data-timing attribute -->
id="mySliderId" class="carousel sz-slider" data-timing="easeinoutcubic"
linear | ease | easein | easeout | easeinout |
easeinsine | easeoutsine | easeinoutsine | easeinquad | easeoutquad |
easeinoutquad | easeincubic | easeoutcubic | easeinoutcubic | easeinquart |
easeoutquart | easeinoutquart | easeinquint | easeoutquint | easeinoutquint |
easeinexpo | easeoutexpo | easeinoutexpo | easeincirc | easeoutcirc |
easeinoutcirc | easeinback | easeoutback | easeinoutback | speedy |
slowspeedy | easeoutincubic | swing |
Use data-sticky attribute to make slider sticky. Default value is : no
<!-- Assign value to data-sticky attribute -->
id="mySliderId" class="carousel sz-slider" data-sticky="yes"
Use data-pauses attribute to make slider pause on hover. Default value is : no
<!-- Assign value to data-pauses attribute -->
id="mySliderId" class="carousel sz-slider" data-pauses="yes"
Use data-start attribute to auto-play the carousel after the user manually cycles the 1st slide. Default value is : no
<!-- Assign value to data-start attribute -->
id="mySliderId" class="carousel sz-slider" data-start="yes"
Whether the carousel should cycle continuously or have hard stops at last slide. Use data-cycle attribute. Default value is : yes
<!-- Assign value to data-cycle attribute -->
id="mySliderId" class="carousel sz-slider" data-cycle="stop"
Enables navigation through slides using mouse wheel. Use data-mouse attribute. Default value is : no
<!-- Assign value to data-mouse attribute -->
id="mySliderId" class="carousel sz-slider" data-mouse="yes"
Enables navigation through slides using keyboard arrow keys. Default value is : no
<!-- Assign value to data-keyboards attribute -->
id="mySliderId" class="carousel sz-slider" data-keyboards="yes"
We have prepared some preloaders for slider. These preloaders will appears until whole window data like images not loaded completely. Default value is : circle
<!--
data-preloader = " {value-1}:{value-2}:{value-3} "
data-preloader = " {type}:{object-color}:{background-color} "
types : circle (default) || dots || scale || box || bars "
-->
id="mySliderId" class="carousel sz-slider" data-preloader="circle:#1a73e8:#f8f9fa"
circle | dots | scale | box | bars |
You can change slider cursor with the help of data-cursor attribute. Default value is : default
<!-- Assign value to data-cursor attribute -->
id="mySliderId" class="carousel sz-slider" data-cursor="default-1"
default | default-1 | move | grab | row-resize |
col-resize | crosshair | e-resize | n-resize | pointer |
If you want to make links as slides or items then must assign "sz-links" class to them. This will prevent click during drag or swipe.
<!-- Slides Wrapper -->
class="carousel-inner"
<!-- Slide 1 -->
class="carousel-item active"
class="sz-links" href="your/link/path" target="_blank"
Slide 1 data like image, text etc.
<!-- Slide 2 -->
class="carousel-item"
class="sz-links" href="your/link/path" target="_blank"
Slide 2 data like image, text etc.
<!-- Slide 3 -->
class="carousel-item"
class="sz-links" href="your/link/path" target="_blank"
Slide 3 data like image, text etc.
If you want to create indicators or thumbnails then use the following HTML pattern.
<!-- Indicators -->
class="carousel-indicators"
<!-- Indicator 01 -->
data-target="#mySliderId" class="active"
<!-- Indicator 02 -->
data-target="#mySliderId"
<!-- Indicator 03 -->
data-target="#mySliderId"
<!-- Indicators -->
class="carousel-indicators sz-thumbnails"
<!-- Thumbnail 01 -->
data-target="#mySliderId" class="active"
src="your/image/url/01.png" alt="image 01"
<!-- Thumbnail 02 -->
data-target="#mySliderId"
src="your/image/url/02.png" alt="image 02"
<!-- Thumbnail 03 -->
data-target="#mySliderId"
src="your/image/url/03.png" alt="image 03"
You can change direction, type and Position of indicators or thumbnails by using the following way.
<!--
If you want to make horizontal indicators or thumbnails then assign "x" as value
If you want to make vertical indicators or thumbnails then assign "y" as value
-->
id="mySliderId" class="carousel sz-slider" data-ind-direction="x"
<!--
If you want to make separated indicators or thumbnails then assign "relative" as value
If you want to appear indicators or thumbnails on images then assign "absolute" as value
-->
id="mySliderId" class="carousel sz-slider" data-ind-direction="x" data-ind-type="absolute"
<!--
If you want to appear indicators or thumbnails top of the slider then assign "top" as value
If you want to appear indicators or thumbnails bottom of the slider then assign "bottom" as value
If you want to appear indicators or thumbnails left of the slider then assign "left" as value
If you want to appear indicators or thumbnails right of the slider then assign "right" as value
-->
id="mySliderId" class="carousel sz-slider" data-ind-direction="x" data-ind-type="absolute" data-ind-position="bottom"
You can customize or create new types of indicators or thumbnails for example.
<!-- You can use also other CSS properties -->
#mySliderId.carousel .carousel-indicators,
#mySliderId.carousel .carousel-indicators.sz-thumbnails
width: 100%;
height: 66px;
padding: 2px;
margin: 0 auto 5px auto;
<!-- You can use also other CSS properties -->
#mySliderId.carousel .carousel-indicators > li,
#mySliderId.carousel .carousel-indicators.sz-thumbnails > li
width: 150px;
height: auto;
padding: 0;
margin: 0 3px;
<!-- You can use also other CSS properties -->
#mySliderId.carousel .carousel-indicators > li.active,
#mySliderId.carousel .carousel-indicators.sz-thumbnails > li.active
border: 2px solid red;
opacity: 1;
If you want to centralize the indicators or thumbnails then fixed the width of their wrapper almost equal to their children.
<!-- Indicators -->
class="carousel-indicators sz-thumbnails" style="width:450px;margin:0 auto;"
<!-- Thumbnail 01 -->
data-target="#mySliderId" class="active" style="width:150px;margin:0;"
src="your/image/url/01.png" alt="image 01"
<!-- Thumbnail 02 -->
data-target="#mySliderId" style="width:150px;margin:0;"
src="your/image/url/02.png" alt="image 02"
<!-- Thumbnail 03 -->
data-target="#mySliderId" style="width:150px;margin:0;"
src="your/image/url/03.png" alt="image 03"
You can drag or swipe thumbnails or indicators. These are also move when we change a slide. You can change transition duration of thumbnails and indicators sliding by assigning "data-ind-duration" attribute to ( carousel-indicators ) div. Default value is : 200
<!-- Indicators -->
class="carousel-indicators" data-ind-duration="300"
<!-- Indicator 01 -->
data-target="#mySliderId" class="active"
<!-- Indicator 02 -->
data-target="#mySliderId"
<!-- Indicator 03 -->
data-target="#mySliderId"
You can animate any element inside the carousel like images, text, buttons, icons, links etc. You can show or hide any element on-demand.
<!-- Assign "yes" value to "data-intervals" attribute -->
<!-- Assign "auto" value to "data-start" attribute -->
id="mySliderId" class="carousel sz-slider" data-intervals="yes" data-start="auto"
<!-- Remove the "data-item-interval" attributes Or assign them value "false" -->
class="carousel-inner"
class="carousel-item active" data-item-interval="false" Slide 1 data like image, text etc.
class="carousel-item" data-item-interval="false" Slide 2 data like image, text etc.
class="carousel-item" data-item-interval="false" Slide 3 data like image, text etc.
<!-- Slides Wrapper -->
class="carousel-inner"
<!-- Slide 1 -->
class="carousel-item active"
<!-- Background Image -->
src="your/image/url/01.png" alt="image 01"
<!-- Element start -->
class="sz-animated"
data-animation-in="fdInTp:2000:1000:animEasein"
Slide 1 Heading <!-- End of element -->
<!-- End of Slide 1 -->
<!-- Slide 2 -->
class="carousel-item"
<!-- Background Image -->
src="your/image/url/02.png" alt="image 02"
<!-- Element start -->
class="sz-animated"
data-animation-in="sclInXRgt:1000:500:animEaseincirc"
Slide 2 Heading <!-- End of element -->
<!-- End of Slide 2 -->
<!-- Slide 3 -->
class="carousel-item"
<!-- Background Image -->
src="your/image/url/03.png" alt="image 03"
<!-- Element start -->
class="sz-animated"
data-animation-in="fxInXpndF:1200:750:animEaseinexpo"
Slide 3 Heading <!-- End of element -->
<!-- End of Slide 3 -->
<!-- End of Slides Wrapper -->
<!-- Slides Wrapper -->
class="carousel-inner"
<!-- Slide 1 -->
class="carousel-item active"
<!-- Background Image -->
src="your/image/url/01.png" alt="image 01"
<!-- Element start -->
class="sz-animated"
data-animation-in="fdInTp:2000:1000:animEasein"
data-animation-out="rolOutRgt:1000:1500:animLinear"
Slide 1 Heading <!-- End of element -->
<!-- End of Slide 1 -->
<!-- Slide 2 -->
class="carousel-item"
<!-- Background Image -->
src="your/image/url/02.png" alt="image 02"
<!-- Element start -->
class="sz-animated"
data-animation-in="tltInTpRgt:1000:500:animEaseincirc"
data-animation-out="flpOutXTp:3000:2500:animEaseinout"
Slide 2 Heading <!-- End of element -->
<!-- End of Slide 2 -->
<!-- Slide 3 -->
class="carousel-item"
<!-- Background Image -->
src="your/image/url/03.png" alt="image 03"
<!-- Element start -->
class="sz-animated"
data-animation-in="rolInBlrTp:1200:750:animEaseinexpo"
data-animation-out="pufOutRgt:1000:5000:animEaseoutquint"
Slide 3 Heading <!-- End of element -->
<!-- End of Slide 3 -->
<!-- End of Slides Wrapper -->
animLinear | animEase | animEasein | animEaseout | animEaseinout |
animEaseinsine | animEaseoutsine | animEaseinoutsine | animEaseinquad | animEaseoutquad |
animEaseinoutquad | animEaseincubic | animEaseoutcubic | animEaseinoutcubic | animEaseinquart |
animEaseoutquart | animEaseinoutquart | animEaseinquint | animEaseoutquint | animEaseinoutquint |
animEaseinexpo | animEaseoutexpo | animEaseinoutexpo | animEaseincirc | animEaseoutcirc |
animEaseinoutcirc | animEaseinback | animEaseoutback | animEaseinoutback | animSpeedy |
animSlowspeedy | animEaseoutincubic | animSwing |
<!-- Assign "carousel" value to "data-type" attribute -->
<!-- Assign "1" value to "data-move" attribute -->
<!-- Assign "true" value to "data-free-mode" attribute Or just remove it -->
id="mySliderId" class="carousel sz-slider" data-type="carousel" data-move="1"
<!--
1 - "data-items" will show 5 slides on screens with minimum width 1201px
-->
id="mySliderId" class="carousel sz-slider"
data-type="carousel"
data-move="1"
data-items="5"
<!--
1 - "data-items" will show 5 slides on screens with minimum width 1201px
2 - "data-xlscreen" will show 4 slides on screens with minimum 993px and maximum 1200px width
-->
id="mySliderId" class="carousel sz-slider"
data-type="carousel"
data-move="1"
data-items="5"
data-xlscreen="4"
<!--
1 - "data-items" will show 5 slides on screens with minimum width 1201px
2 - "data-xlscreen" will show 4 slides on screens with minimum 993px and maximum 1200px width
3 - "data-lgscreen" will show 3 slides on screens with minimum 769px and maximum 992px width
-->
id="mySliderId" class="carousel sz-slider"
data-type="carousel"
data-move="1"
data-items="5"
data-xlscreen="4"
data-lgscreen="3"
<!--
1 - "data-items" will show 5 slides on screens with minimum width 1201px
2 - "data-xlscreen" will show 4 slides on screens with minimum 993px and maximum 1200px width
3 - "data-lgscreen" will show 3 slides on screens with minimum 769px and maximum 992px width
4 - "data-mdscreen" will show 2 slides on screens with minimum 576px and maximum 768px width
-->
id="mySliderId" class="carousel sz-slider"
data-type="carousel"
data-move="1"
data-items="5"
data-xlscreen="4"
data-lgscreen="3"
data-mdscreen="2"
<!--
1 - "data-items" will show 5 slides on screens with minimum width 1201px
2 - "data-xlscreen" will show 4 slides on screens with minimum 993px and maximum 1200px width
3 - "data-lgscreen" will show 3 slides on screens with minimum 769px and maximum 992px width
4 - "data-mdscreen" will show 2 slides on screens with minimum 576px and maximum 768px width
5 - "data-smscreen" will show 1 slides on screens with maximum 575px width
-->
id="mySliderId" class="carousel sz-slider"
data-type="carousel"
data-move="1"
data-items="5"
data-xlscreen="4"
data-lgscreen="3"
data-mdscreen="2"
data-smscreen="1"
<!-- Video -->
class="sz-video"
src="your/video/path/video.mp4" type="video/mp4"
<!-- Video 1 -->
class="sz-video" playsinline muted autoplay
src="your/video/path/video-1.mp4" type="video/mp4"
<!-- Video 2 -->
class="sz-video" playsinline muted autoplay
src="your/video/path/video-2.mp4" type="video/mp4"
<!-- Video -->
class="sz-video" playsinline muted autoplay
src="your/video/path/video.mp4" type="video/mp4"
<!-- Play & Pause Button -->
type="button" class="sz-media-btn sz-pause-btn"
<!-- Mute & UnMute Button -->
type="button" class="sz-speaker-btn sz-mute-btnn"
class="sz-iframe" src="https://www.youtube.com/embed/tb68MXVmVKs" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen
<!-- If we need pagination -->
class="carousel-item-number"
<!-- Number Of Current Slide -->
class="carousel-item-single"
<!-- Divider -->
/
<!-- Total Numbers Of Slides -->
class="carousel-item-length"
<!--
We are using "true" value into "data-progress" attribute
-->
id="mySliderId" class="carousel sz-slider" data-animation="dragX" data-progress="true" data-intervals="yes" data-start="auto"
<!-- Slides Wrapper -->
class="carousel-inner"
<!-- Slide 1 -->
class="carousel-item active"
<!-- Background Image -->
src="your/image/url/01.png" alt="image 01" class="sz-bg-img"
<!-- Loading bar -->
class="sz-slide-bar-wrap"
<!-- Animated Part -->
class="sz-slide-bar"
<!-- End of loading bar -->
<!-- End of Slide 1 -->
<!-- Slide 2 -->
class="carousel-item"
<!-- Background Image -->
src="your/image/url/02.png" alt="image 02" class="sz-bg-img"
<!-- Loading bar -->
class="sz-slide-bar-wrap"
<!-- Animated Part -->
class="sz-slide-bar"
<!-- End of loading bar -->
<!-- End of Slide 2 -->
<!-- Slide 3 -->
class="carousel-item"
<!-- Background Image -->
src="your/image/url/03.png" alt="image 03" class="sz-bg-img"
<!-- Loading bar -->
class="sz-slide-bar-wrap"
<!-- Animated Part -->
class="sz-slide-bar"
<!-- End of loading bar -->
<!-- End of Slide 3 -->
<!-- End of Slides Wrapper -->
<!-- For Loading Bar Wrapper -->
#mySliderId.carousel .sz-slide-bar-wrap
top: 0;
bottom: auto;
width: 100%;
height: 5px;
background: #717375;
<!-- For Animated Part -->
#mySliderId.carousel .sz-slide-bar-wrap > .sz-slide-bar
background: #1a73e8;
<!-- Use span inside li -->
class="carousel-indicators sz-ind-animated"
data-target="#mySliderId" class="active"
data-target="#mySliderId"
data-target="#mySliderId"
#mySliderId.carousel > .carousel-indicators.sz-ind-animated > li > span
background: #1a73e8;
Use bg-parallax class to make background parallax effect and assign background image through CSS.
<!-- For Parallax Background Effect -->
id="mySliderId" class="carousel sz-slider bg-parallax" data-type="slider" style="background: #3b56ca url(your/image/path) top left/cover no-repeat;"
If you want to show scroll down button then use the following HTML code. Add this code inside main slider div and after all others elements or just after navigation buttons.
<!-- If we need scroll down button -->
class="carousel-scroll-down"
<!-- All elements like text or icons will go here -->
You can change the following touch functions by using their attributes and values:
Attribute Name
data-* |
Default Value | Type | Description |
fingers | 1 | int | If the requirements are not met, the swipe handler will not be able to trigger. You can determine the number of fingers to swipe. |
threshold | 75 | int | You would have to determine the number of pixels for the swipe to trigger. For example if you have determined the pixels at 75 but the user moves its finger at 50 pixels the swipe will not function. |
cancelThreshold | null | int | If the user wants to cancel the gesture, then it needs to swipe back the same pixels which has already been determined. |
pinchThreshold | 20 | int | To consider a pinch, the number of pixels must be pinched by the finger. |
maxTimeThreshold | null | int | For considering a swipe the touchEND and touchStart must not be exceeded and the time will be milliseconds. |
fingerReleaseThreshold | 250 | int | If the two fingers are released one after another it will be considered as simultaneous release. |
longTapThreshold | 500 | int | To release a long tap the time will be in milliseconds between the release and tap. |
doubleTapThreshold | 200 | int | For a double tap the time of two taps will be set out in milliseconds. |
triggerOnTouchEnd | true | boolean | When the user releases the finger it is considered as an event and it gets triggered with the touch. The touch event will automatically be cancelled after reaching the threshold after getting triggered. |
triggerOnTouchLeave | true | boolean | If true, the swipe will end and trigger appropriate handlers. It will happen when the user leaves the swipe object. |
allowPageScroll | auto | string |
How the page scroll is handled by the browser, when the user swipes an object, which is touchswipe.
"auto" : An object which is not defined as a swipe will make the page to scroll in any direction. "none" : It will not let the page to scroll, when the user swipes. "horizontal" : It will force the page to scroll horizontally. "vertical" : the page will scroll vertically to swipe. |
fallbackToMouseEvents | true | boolean | If true, The mouse events will run on non touch devices, if it is considered false, the swipes will not be triggered by mouse events on the touch swipes. |
preventDefaultEvents | true | boolean | The page doesn’t move if the default events are cancelled. You can customize it by disabling the native events fire and the handlers as well. |
excludedElements | .noSwipe | string | The swipes do not trigger when the child element is specified by the jquery selector. It is excluded on default basis by using the class .noSwipe. |
<!-- You can change the following touch functions by using their attributes and values -->
id="mySliderId" class="carousel sz-slider"
data-fingers="1"
data-threshold="75"
data-cancelThreshold="null"
data-pinchThreshold="20"
data-maxTimeThreshold="null"
data-fingerReleaseThreshold="250"
data-longTapThreshold="500"
data-doubleTapThreshold="200"
data-triggerOnTouchEnd="true"
data-triggerOnTouchLeave="true"
data-allowPageScroll="auto"
data-fallbackToMouseEvents="true"
data-preventDefaultEvents="true"
data-excludedElements=".noSwipe"