keen-slider icon indicating copy to clipboard operation
keen-slider copied to clipboard

Origin: center

Open pt-sublime opened this issue 3 years ago • 1 comments

I have 10 images, and the perView setting set as 5 images.

When I use origin: center, it won't show more than 3 images at the start, as the first image is centered (so 2 blanks at top).

Is there any support/setting for always showing a minimum of slides even with the centering option enabled?

A little hack-ish way I tried was setting the "initial" setting to 2, and that delivers the intended behavior somewhat. However, as soon as you click image 1 or 2, the same issue will re-appear again.

pt-sublime avatar Jul 25 '22 14:07 pt-sublime

Hey @pt-sublime

the easiest way is to use the range property. See here: https://codesandbox.io/s/crazy-hooks-e49g56?file=/src/App.js

rcbyr avatar Aug 07 '22 11:08 rcbyr