Answer the question
In order to leave comments, you need to log in
How to make slide tracking?
I use slick slider, elements are used as navigation buttons .
How do I add the active-link class to the corresponding element when changing the slide? Tried to implement like this:<a class="no-active></a>
$('.menu-slider').on('afterChange', function(event, slick, currentSlide, nextSlide){
$('.no-active').removeClass('active-link');
currentSlide = $('.no-active').addClass('active-link');
});
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