P
P
pashakabat2018-09-04 15:45:20
JavaScript
pashakabat, 2018-09-04 15:45:20

The video in the slider does not stop when scrolling the slider, how to fix it?

Good afternoon. The site has a slick slider installed, it contains slides with the video tag. The problem is that the video does not stop when clicking the slide. How to fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri, 2018-09-04
@pashakabat

$('.your-element').on('beforeChange', function(event, slick, currentSlide, nextSlide){
 $(this).find('video').trigger('pause');
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question