Slick Config Bug
HTML
<link rel="stylesheet" href="https://github.com/kenwheeler/slick/blob/master/slick/slick-theme.css">
<script src="https://cdn.jsdelivr.net/jquery.slick/latest/slick.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/jquery.slick/latest/slick.css">
<!-- Add your site or application content here -->
<p>Hello world! This is HTML5 Boilerplate.</p>
<div class="your-class">
<div> <div class = "black-box one"> </div> </div>
<div> <div class = "black-box two"> </div> </div>
<div> <div class = "black-box three"> </div> </div>
<div> <div class = "black-box four"> </div> </div>
<div> <div class = "black-box five"> </div> </div>
<div> <div class = "black-box six"> </div> </div>
<div> <div class = "black-box seven"> </div> </div>
<div> <div class = "black-box eight"> </div> </div>
<div> <div class = "black-box nine"> </div> </div>
</div>
CSS
.black-box{
height: 200px;
width: 200px;
background: black;
}
.one{
background: yellow;
}
.two{
background: orange;
}
.three{
background: pink;
}
.four{
background: red;
}
.five{
background: blue;
}
.six{
background: brown;
}
.seven{
background: green;
}
.eight{
background: gray;
}
.nine{
background: red;
}
JavaScript
$('.your-class').slick({
slidesToShow: 4.4,
slidesToScroll: 1,
dots: false,
arrows: false,
swipeToSlide: true,
infinite: false,
prevArrow: '<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button"></button>',
nextArrow: '<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button"></button>',
customPaging: function(slider, i) {
return '<button type="button" data-role="none" role="button" aria-required="false" tabindex="0"></button>';
},
responsive: [
{
breakpoint: 1024,
settings: {
slidesToShow: 3.4
}
}
]
});