Coder Wrap provides free to use snippets Coder Wrap provides free to use snippets

Back to Sliders
Preview Source Code
Download
HTML
CSS
* {
  box-sizing: border-box;
}
body {
  padding: 0px;
  margin: 0px;
  font-size: 16px;
  font-family: arial;
  color: #000;
}
.slick-options-group img {
  max-width: 100%;
}
h2 {
  padding-top: 30px;
  display: inline-block;
  width: 100%;
  font-size: 30px;
}
.container {
  max-width: 1170px;
  margin: auto;
  width: 100%;
}
.slick-options-group {
  padding-bottom: 40px;
}
.slick-options-group .text-center {
  text-align: center;
}
.slick-options-group .text-left {
  text-align: left;
}
.slick-options-group .text-right {
  text-align: right;
}

/**Custom CSS for slick slider**/
.slider .slick-slide {
  padding: 0px 10px;
}
.slider .slick-arrow {
  position: absolute;
  top: 50%;
  margin-top: -10px;
  font-size: 0px;
  line-height: 0px;
  background-color: transparent;
  border: none;
  width: 20px;
  height: 20px;
  border-left: 4px #000 solid;
  border-bottom: 4px #000 solid;
  z-index: 1;
  cursor: pointer;
}
.slider .slick-arrow.slick-disabled {
  opacity: 0.5;
}
.slider .slick-arrow.slick-prev {
  transform: rotate(45deg);
  left: -30px;
}
.slider .slick-arrow.slick-next {
  transform: rotate(-135deg);
  right: -30px;
}
.slider.slick-dotted {
  padding-bottom: 30px;
}
.slider.slick-dotted .slick-arrow {
  margin-top: -30px;
}
ul.slick-dots {
  list-style: none;
  padding: 0px;
  display: flex !important;
  flex-flow: row wrap;
  justify-content: center;
  margin: auto;
  text-align: center;
  position: absolute;
  bottom: 0px;
  left: 0px;
  right: 0px;
  cursor: pointer;
}

ul.slick-dots li button {
  width: 14px;
  height: 14px;
  border: none;
  font-size: 0px;
  background-color: #8b8b8b;
  border-radius: 100%;
  padding: 0px;
  margin: 0px 3px;
}

ul.slick-dots li.slick-active button {
  background-color: #000;
}

.slick-current.slick-active.slick-center {
  transform: scale(1.1);
}
/**Custom CSS for slick slider**/
JS
/**Single Item start**/
$('.single-item').slick();
/**Single Item end**/

/**Multiple items start**/
$('.multiple-items').slick({
	infinite: true,
	slidesToShow: 3,
	slidesToScroll: 3
});
/**Multiple items end**/

/**Responsive Display start**/
$('.responsive').slick({
	dots: true,
	infinite: false,
	speed: 300,
	slidesToShow: 4,
	slidesToScroll: 1,
	responsive: [{
			breakpoint: 1024,
			settings: {
				slidesToShow: 3,
				slidesToScroll: 1,
				infinite: true,
				dots: true
			}
		},
		{
			breakpoint: 600,
			settings: {
				slidesToShow: 2,
				slidesToScroll: 1
			}
		},
		{
			breakpoint: 480,
			settings: {
				slidesToShow: 1,
				slidesToScroll: 1
			}
		}
	]
});
/**Responsive Display end**/

/**Variable Width start**/

$('.variable-width').slick({
	dots: true,
	infinite: true,
	speed: 300,
	slidesToShow: 1,
	centerMode: true,
	variableWidth: true
});
/**Variable Width end**/

/**Adaptive Height start**/
$('.adaptive-height').slick({
	dots: true,
	infinite: true,
	speed: 300,
	slidesToShow: 1,
	adaptiveHeight: true
});
/**Adaptive Height end**/

/**Center Mode start**/
$('.center-mode').slick({
	centerMode: true,
	centerPadding: '60px',
	slidesToShow: 3,
	responsive: [{
			breakpoint: 768,
			settings: {
				arrows: false,
				centerMode: true,
				centerPadding: '40px',
				slidesToShow: 3
			}
		},
		{
			breakpoint: 480,
			settings: {
				arrows: false,
				centerMode: true,
				centerPadding: '40px',
				slidesToShow: 1
			}
		}
	]
});
/**Center Mode end**/

/**Autoplay start**/
$('.autoplay').slick({
	slidesToShow: 3,
	slidesToScroll: 1,
	autoplay: true,
	autoplaySpeed: 2000,
});
/**Autoplay end**/

/**Fade start**/
$('.fade').slick({
	dots: true,
	infinite: true,
	speed: 500,
	fade: true,
	cssEase: 'linear'
});
/**Fade end**/
CSS File
	
JS File

Related Snippets

Leave a comment

Your email address will not be published. Required fields are marked *