R
R
Roman2020-03-12 17:00:20
css
Roman, 2020-03-12 17:00:20

How to center blocks in a slider?

Hello. There is a site . In this block skrinshoter.ru/s/120320/CAu2JtEw the slide does not display smoothly. Perhaps after the changes it was cached and it looks like this only for me. How can I fix it so that both blocks fit?

Slider settings code:

$(document).ready(function(){
        $('.wrap-team__slider').slick({
            infinite: false,
            adaptiveHeight: true,
            slidesToShow: 2,
            slidesToScroll: 1,
            arrows: false,
            autoPlay: true,
            centerMode: true,
            centerPadding:'',
            responsive: [
                {
                    breakpoint: 768,
                    settings: {
                        arrows: false,
                        centerMode: true,
                        centerPadding: '40px',
                        slidesToShow: 1
                    }
                },
                {
                    breakpoint: 480,
                    settings: {
                        centerMode: true,
                        arrows: false,
                        slidesToScroll: 1,
                        slidesToShow: 0.8
                    }
                },
                {
                    breakpoint: 350,
                    settings: {
                        centerMode: false,
                        arrows: false,
                        slidesToScroll: 1,
                        slidesToShow: 0.8
                    }
                },
            ]
        });

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexandr228, 2020-03-12
@Alexandr228

put
me
578f238fd064ddf0c0c2d078272841fa.jpg
yandeks-sdelal-sobstvennogo-golosovogo-p
maxresdefault-7.jpg
DbOXHD1XkAEFy1h.jpg
s1200.jfif
this html at the very end
and write sss yourself

A
Anton Usachov, 2020-03-12
@rockfeeler

Why this horse left margin? Put away!
5e6a4eaeeec956489619149.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question