V
V
Viorel2018-03-14 12:49:26
JavaScript
Viorel, 2018-03-14 12:49:26

Slick carousel last slide how to make a transition to the page?

There is a carousel on Slick how to make a transition to a specific page when viewing the last slide throw in the Codepen

idea

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2018-03-14
@bushido2014

set infinite: false
then when the end is reached, the next button has the slick-disabled class, we
cling to this selector and process a click on it, making a transition, and indeed anything.
for example

$('.slick-next.slick-disabled').on('click',function(){
//some logic
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question