Open semihkaragozoglu opened 6 years ago
I think the best solution for you is to use centerMode
and to increase the height of your container like the following: https://jsfiddle.net/75ouf2pg/5/
I had the same issue, fixed one like this: I replaced this part of code
if (_.options.vertical === false) {
targetLeft = ((slideIndex * _.slideWidth) * -1) + _.slideOffset;
} else {
targetLeft = ((slideIndex * verticalHeight) * -1) + verticalOffset;
}
with this one
if (_.options.vertical === false) {
targetLeft = ((slideIndex * _.slideWidth) * -1) + _.slideOffset;
} else {
var scrollHeight = 0;
for(var i = 0; i < slideIndex; i++)
scrollHeight+= _.$slides.eq(i).outerHeight(true);
targetLeft = (scrollHeight * -1) + verticalOffset;
}
targetLeft
Where add this code ?
Hello, i have been using this slider for 8 months already thanks very much
Im trying to do Vertical slider, but i cant set slidesToShow option. height of .slick-list and .slick-slide items can be variant.
here is my fiddle https://jsfiddle.net/75ouf2pg/4/
is there a way to set slidesToShow auto.
best Regards