C
C
colddave2016-11-28 10:46:11
JavaScript
colddave, 2016-11-28 10:46:11

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

1 answer(s)
I
iBird Rose, 2016-11-28
@colddave

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 question

Ask a Question

731 491 924 answers to any question