kenwheeler / slick

the last carousel you'll ever need
kenwheeler.github.io/slick
MIT License
28.5k stars 5.88k forks source link

How to put a slide in half a container? #4129

Open hebertdelima13 opened 3 years ago

hebertdelima13 commented 3 years ago

I tried in different ways to put a slide to appear only half or part, as shown in the image below:

https://ibb.co/5Bt21Hp

Does anyone know how to put it that way?

I also wanted to know how to center the smaller images. Because when I put a smaller image, it aligns with the top of the larger image,

nurullah commented 1 year ago

You need to use the scrollToShow parameter with a decimal number in the example below;

$('.bestofsale-items').slick({
  slidesToShow: 3.7,
  slidesToScroll: 3
});