W
W
wanderbit2017-10-28 23:22:36
JavaScript
wanderbit, 2017-10-28 23:22:36

How to move active slide to second position in slick slider?

How to move active slide to second position in slick slider ?
https://prnt.sc/h3916g

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
wanderbit, 2017-10-29
@wanderbit

by default, the active slide with the class slick-current is the first one from the left, I need the second one to be active

U
ukabyl, 2019-06-05
@ukabyl

When initializing the slider, use the slickGoTo method
$('.your element').slick('slickGoTo', active slide index);
In your case, the index will be equal to 1, because starts from 0.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question