N
N
Nikolay Evsyukov2019-08-29 03:09:27
JavaScript
Nikolay Evsyukov, 2019-08-29 03:09:27

Slick.js with centerMode:true and infinite: false has side padding, how to remove it?

Community, the question is in the title - with centerMode:true and infinite: false I can remove the first slide far to the left or the last one far to the right - https://codepen.io/Nikolasgrizli/pen/dybRpxY , but very large voids are obtained, I searched many forums and I saw questions with the same essence, but I didn’t find an answer anywhere (((
I tried in different ways - but so far unsuccessfully, since I can stop dragging when I reach some suitable slide by removing the draggable and swipe (and then - it looks not pretty, as there is no animated rollback (as when reaching the edge slider)), however, I lack a function that would track the direction of mouse/finger movement and, if the direction is appropriate, then turn disabled options back on.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lone Ice, 2019-09-12
@daemonhk

https://codepen.io/daemonhk/pen/ZEzoZow
right?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question