B
B
Breeze12020-10-19 14:00:21
Slick
Breeze1, 2020-10-19 14:00:21

How to switch tabs on slide change in Slick?

There is a slick slider . After switching the slide, the corresponding tab should open in tabs.
I solve this problem using index(). But I can’t finish it, now the order of switching tabs is down by one.

If you start scrolling, the first tab is included on the second slide.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2020-10-19
@Breeze1

.on('beforeChange', function(e, slick, currSlide, nextSlide) {
  $('.tabs-content__item').hide().eq(nextSlide).fadeIn();
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question