K
K
Konstantin2020-04-27 17:39:26
css
Konstantin, 2020-04-27 17:39:26

Slick slider crops the photo, how to fix it?

I installed a slick slider, in the lower slider it cuts the first and last photo.

5ea6ee8a80581435818372.jpeg

For the first photo I found the line:

<div class="slick-list draggable" style="padding: 0px 50px;">


But I don’t understand where to edit, and also how to resize the bottom images?

Site gradk.com/ver3.html

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Brendan Castaneda, 2020-05-28
@ae_ph

I once hacked it and wrote this code.
slidesToShow: 3, // how many slides to show in the carousel
slidesToScroll: 3 // how many slides to scroll at a time

$(function() {
    $('.slider__inner').slick({
        autoplay: false,
        autoplaySpeed: 2000,
        slidesToShow: 1,
        slidesToScroll: 1,
        fade: true,
        asNavFor: '.thumbs',
        arrows: true,
        responsive: [{
            breakpoint: 502,
            settings: {
                dots: true,
            },
        }]
    });
    $('.thumbs').slick({
        slidesToShow: 5.9,
        slidesToScroll: 1,
        asNavFor: '.slider__inner',
        dots: false,
        arrows: false,
        focusOnSelect: true,
        infinite: true,
        responsive: [{
            breakpoint: 828,
            settings: {
                slidesToShow: 5,
            },
        }, {
            breakpoint: 638,
            settings: {
                slidesToShow: 4,
            },
        }]
    });
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question