Answer the question
In order to leave comments, you need to log in
How to make the second slide initial on load in slick-slider?
$('.main-banners-slider .image-banner').slick({
infinite: true,
autoplay: true,
autoplaySpeed: 4000,
slidesToShow: 1,
slidesToScroll: 1,
arrows: true,
prevArrow: '.main-banners_prev-arrow',
nextArrow: '.main-banners_next-arrow',
dots: true,
customPaging : function(slider, i) {
var thumb = $(slider.$slides[i]).data();
return '<a>'+0+(i+1)+'</a>';
},
responsive: [
{
breakpoint: 767,
settings: {
arrows: false,
}
},
],
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question