N
N
Neolq2021-09-21 00:56:43
JavaScript
Neolq, 2021-09-21 00:56:43

Connect multiple navigation items in slick slider?

I use slick-slider. You need to connect for navigation - dots and buttons with the name of the product. How to make everything work at the same time?
6149044964de6073115654.jpeg

$(document).ready(function () {
   $('.searched__slider').slick({
      arrows: true,
      dots: true,
      slidesToShow: 1,
      slidesToScroll: 1,
      infinite: false,
      speed: 1000,
      swipe: false,
      touchMove: false,
      appendDots: '.searched__box-dots',
      dotsClass: 'searched__dots',
      appendArrows: '.searched__arrow',
      prevArrow: $('.searched-arrow--prev'),
      nextArrow: $('.searched-arrow--next'),
   })
})

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
ForSureN1, 2021-09-21
@ForSureN1

there, slick has a method called SlideToGo, it’s called, through js you find the indexes of the slides, and make a connection between them through this method

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question