A
A
Anton Plawkevich2018-08-26 01:24:05
Slick
Anton Plawkevich, 2018-08-26 01:24:05

How to hang a handler on nextArrow in Slick slider?

Hello, on the docks slicka added a button namely

<button type="button" class="slick-next">Next</button>
but I would like to know how to add a js handler so that it flips through the slides, thanks.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita Egorov, 2018-08-26
@antowa_plawkevich

In the slick configuration, specify the nextArrow and prevArrow properties:

{
    // ваши настройки
    nextArrow: document.querySelector('.slick-next'),
    prevArrow: document.querySelector('.slick-prev')
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question