F
F
festus132020-04-07 11:10:12
JavaScript
festus13, 2020-04-07 11:10:12

Setting up a slick slider swipe with dots?

I made a slider on slick, added custom buttons, but as soon as I added them, the swipe in the mobile version stops working, how can I immediately realize that there would be both a swipe and buttons?
Here is my slider code:

$(document).on('ready', function() {
            $('.menu-slider').slick({
                swipe: true,
                dots: true,
                infinite: true,
                speed: 300,
                slidesToShow: 1,
                adaptiveHeight: false,
                customPaging : function(slider, i) {
                 var thumb = $(slider.$slides[i]).data();
                  return 'День '+(i+1)+'';
                 },
            });
        });

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question