Answer the question
In order to leave comments, you need to log in
How to switch slides in the slider after the end of playback?
It is necessary to switch slides at the end of video playback.
In slick, you can only set a fixed time for scrolling through the slides (for example, 3 seconds)
I can calculate the length of the video through video.duration, but then the other video will have the same time.
Answer the question
In order to leave comments, you need to log in
Well, something like this:
$('video').on('ended', function(){
$('.slick-slider').slickNext();
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question