A
A
artur0120972020-06-27 17:19:32
Slick
artur012097, 2020-06-27 17:19:32

How to change slick slider code when changing screen resolution?

The site has a Slick slider connected to the Slider element (slider.slick()). It has the following structure:

slider.slick ({
    autoplay: true,
    autoplaySpeed: 3000,
    speed: 300,
    infinite: true,
    slidesToShow: 3,
    slidesToScroll: 1,
    prevArrow: arrowPrev,
    nextArrow: arrowNext,
 });


The slider shows 3 slides, but with a resolution less than 992px, you need to change the display to 1 slide and some settings inside the slider. For example add a dock with control buttons (dots: true).
How to access the slider when changing permissions to change parameters?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WapSter, 2020-06-27
@artur012097

Responsive Display At the very beginning of the documentation..

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question