This is a (multiple allowed):
Is it possible to add a stage padding option as found in the following other libraries:
https://owlcarousel2.github.io/OwlCarousel2/demos/stagepadding.html
https://glidejs.com/docs/options/#peek
Do you want to ask a question? Are you looking for support? Stack Overflow is the best places for getting support
Please, don't use GitHub issues for questions
I was making a feature request rather than asking a question. Apologies if it was not clear.
It is already possible. Set slidesPerView auto and set slide width less than 100%
Thanks for your fast responses.
I'm not sure if your suggestion enables the feature as per the other libraries. I'll try and explain my use case little further:
I need to display 4 items in full at any point in time and have an additional 2 far left and far right items cutoff on the edges of the window.
I want to be able to specify (in pixels) how much of the cutoff items are visible e.g. onyl show 100px of the far right and far left items. Ideally this would be specified as an option (hence my original feature request). This is well demonstrated here: https://glidejs.com/docs/options/#peek
I tried your method but found that the first item still starts on the far left and I could not specify a pixel value for the visibility of the cutoff items.
I would need this feature too, I tried your solution @nolimits4web, but it doesn't give the functionality of
https://owlcarousel2.github.io/OwlCarousel2/demos/stagepadding.html
https://glidejs.com/docs/options/#peek
Hello, I think that this is the only missing feature of this carousel. I hope it will be implemented soon!
Did you try decimal slidesPerView e.g slidesPerView: 2.5,?
https://stackblitz.com/edit/y5xqj7?file=index.html
Did you try decimal
slidesPerViewe.gslidesPerView: 2.5,?
https://stackblitz.com/edit/y5xqj7?file=index.html
Thank you man, I didn't know that slidesPerView could have been float. It seems to solve the issue.
Most helpful comment
I would need this feature too, I tried your solution @nolimits4web, but it doesn't give the functionality of
https://owlcarousel2.github.io/OwlCarousel2/demos/stagepadding.html
https://glidejs.com/docs/options/#peek