S
S
Scalletta2018-02-07 19:45:34
css
Scalletta, 2018-02-07 19:45:34

How to link two "owlslider" sliders?

the task is to make a similar slider
5a7b2c72ce194643711705.jpeg
Big picture - active slide
small pictures - slides of the same slider

Essence: the tape from the slides is scrolled and the desired slide is selected, flattering the big picture, the slides below are also scrolled.
there is a SlickSlider slider, it creates two sliders and they are connected to each other. But the customer needs OwlSlider2, I google Google, I can’t find anything. I don’t see such a function in the docks (maybe I’m blind). How can I accomplish this task? what tell me?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
L
lodas, 2018-02-08
@Scalletta

It's easier to change the slider to slick, there is a usable solution to your problem. 2 sliders are made:

$('.slider-for').slick({
  slidesToShow: 1,
  slidesToScroll: 1,
  arrows: false,
  fade: true,
  asNavFor: '.slider-nav'
});
$('.slider-nav').slick({
  slidesToShow: 3,
  slidesToScroll: 1,
  asNavFor: '.slider-for',
  dots: true,
  centerMode: true,
  focusOnSelect: true
});

where asNavFor: - bind sliders to each other.

D
Dima, 2018-02-07
Dolgoter @DDolgy

Stupid question, did you try to take two sliders and remove the arrows and id from the second one?)

A
Alexander Pushkarev, 2018-02-07
@AXP-dev

You can link them via https://owlcarousel2.github.io/OwlCarousel2/docs/a... but you will have to write the implementation yourself

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question