vicario
vicario

Reputation: 233

make slick slider only show 3 item

hello i use slick slider and want to show only 3 image

but it left half image in both side

<div class="review-company">
    div><img src="http://placehold.it/350x350"></div>
    <div><img src="http://placehold.it/350x350"></div>
    <div><img src="http://placehold.it/350x350"></div>
    <div><img src="http://placehold.it/350x350"></div>
    <div><img src="http://placehold.it/350x350"></div>
    </div><!-- Review-company -->

 $('.review-company').slick({
      centerMode: true,
      centerPadding: '60px',
      slidesToShow: 3,
      responsive: [
        {
          breakpoint: 768,
          settings: {
            arrows: false,
            centerMode: true,
            centerPadding: '40px',
            slidesToShow: 3
          }
        },
        {
          breakpoint: 480,
          settings: {
            arrows: false,
            centerMode: true,
            centerPadding: '40px',
            slidesToShow: 1
          }
        }
      ]
    });

how to make it only show 3 image with empty space in left and right?

Upvotes: 2

Views: 4659

Answers (1)

vicario
vicario

Reputation: 233

just make centerMode false

got it from @Yass

Upvotes: 2

Related Questions