debute debute - 2 years ago 241
jQuery Question

Center active slide with showing 3 slides in slick.js

I'm using

plugin and I want to make something like on their website. Here is DEMO.

Problem is, that first active slide
is not centered. I know I can use

slidesToShow: 3,
slidesToScroll: 1,
asNavFor: '.slider-for',
dots: true,
focusOnSelect: true,
centerMode: true

but then there are not 3 slides, but also parts of another 2 slides, see HERE

Answer Source

Well, this is so embarrassing. All it needs to have is set option centerPadding to 0. I don't know why I haven't seen this before. Anyway, here is my 1-month update:


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download