Answer the question
In order to leave comments, you need to log in
Problem with slick slider, how to rearrange prev and next buttons to another container?
That's how it is by default, everything works fine
And you need to do it like
this
appendArrows: $(".slider2-image-wrapper")and adding position: relative;
Answer the question
In order to leave comments, you need to log in
And you can also lay out the buttons separately and, when initializing the slider, indicate that these html elements will be buttons for the slider.
I haven't used it for a long time, but, if I'm not mistaken, you just need, for example, in prevArrow to specify the selector of the element (elements) that will be responsible for scrolling to the previous slide for this slider.
The documentation confirms this:
prevArrow
Type: string (html|jQuery selector) | object (DOM node|jQuery object)
$('.slick-slider .slider-items').slick({
infinite: true,
slidesToShow: 1,
slidesToScroll: 1,
dots: true,
arrows: true,
dotsClass: 'nav slide-dots',
prevArrow: '<div class="prev"></div>',
nextArrow: '<div class="next"></div>',
appendArrows: '.slider-navigation',
appendDots: '.slider-dots',
});
.slider2-image-wrapper{
width: (Тут длина фото)px;
position: absolute;
bottom: 0;
z-index: 2;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question