Answer the question
In order to leave comments, you need to log in
How to set a delay before scrolling a slide in a slick slider?
I want to add animations for elements in the slider, but I can’t figure out how to make a delay before scrolling the slide, please tell me guys (
The speed parameter is not suitable, it sets the speed, not the delay
var mySlider = $('.slider_picasso');
mySlider.slick({
dots: false,
infinite: true,
speed: 500,
autoplay: false,
arrows: true,
slidesToShow: 1,
verticalSwiping: true,
slidesToScroll: 1,
});
mySlider.mousewheel(function(e) {
e.preventDefault();
if (e.deltaY < 0) {
$(this).slick('slickNext');
} else {
$(this).slick('slickPrev');
}
});
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