Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question