Answer the question
In order to leave comments, you need to log in
How to bind arrows in slick slider to central slide?
Who can help? I'm trying to bind the buttons to the central slide, but when paging, the buttons fly away with the slide. I tried to bind the arrows in the wrapper that I'm doing, it doesn't work, the arrows scroll along with the slide.
$(document).ready(function () {
$('.news__slider').slick({
slidesToShow: 3,
centerMode: true,
arrows: false
})
$(".news__slider .slick-center").wrap(' ')
var next = $('')
next.on("click", (function () { $(".news__slider").slick("slickNext") }))
$(".news__slider .slick-slide- wrap").append(next)
var prev = $('')
prev.on("click", (function () { $(".news__slider").slick("
})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question