I’m using slick.js
plugin and I want to make something like on their website. Here is DEMO.
Problem is, that first active slide 1
is not centered. I know I can use
JavaScript
x
9
1
$('.slider-nav').slick({
2
slidesToShow: 3,
3
slidesToScroll: 1,
4
asNavFor: '.slider-for',
5
dots: true,
6
focusOnSelect: true,
7
centerMode: true
8
});
9
but then there are not 3 slides, but also parts of another 2 slides, see HERE
Advertisement
Answer
Well, this is so embarrassing. All it needs to have is set option centerPadding
to 0
(beside setting centerMode
to true
). I don’t know why I haven’t seen this before. Anyway, here is my 1-month update: