O
O
Oslar2018-09-24 17:46:40
css
Oslar, 2018-09-24 17:46:40

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

1 answer(s)
J
Jupiter Max, 2018-09-24
@vardoLP

do you mean the delay on clicking on the arrows?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question