Answer the question
In order to leave comments, you need to log in
How to catch slide change event in slick?
How to catch slide change event in slick?
afterChange and beforeChange do not work when changing the slide,
but if you pull the slide without flipping.
$('.items').on('afterChange', function(event, slick, currentSlide, nextSlide){
});
Answer the question
In order to leave comments, you need to log in
you directly copied the line yourself, where the currentSlide and nextSlide parameters are passed to the function - well, compare them and do an if to find out if there was a flip or not.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question