S
S
saplas2019-06-14 18:54:00
css
saplas, 2019-06-14 18:54:00

How to change slick arrows?

Hello, how can I change the arrows in the slick slider so that when the end slider is reached, .slick-next turns into .slick-prev in the same place?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaliy Pershin, 2019-06-14
@saplas

We subscribe to slider events and perform the necessary actions at the right time:

$('.slider').on('beforeChange', function (event, slick, currentSlide, nextSlide) {
        if(slick.slideCount == nextSlide + 1) {
            // code...
        }
    });

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question