B
B
Breeze12019-09-23 22:10:33
JavaScript
Breeze1, 2019-09-23 22:10:33

Slick autopay when slider is visible?

There is a slick slider in the middle of the page. We need to start autoplay when we scroll to it. I can't find such an option inside the slider itself. Perhaps someone has implemented something similar?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mesuti, 2019-09-23
@Mesuti

How to track the appearance of an element in the browser's scope?
https://ru.stackoverflow.com/questions/641531/
it is under Slick that you need to edit a little ..

A
Artyom Cherny, 2019-09-24
@AngryCrow

As already mentioned above, we track the appearance of the element in the visibility zone and apply the slickPlay method, which starts autoplay

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question