splide
splide copied to clipboard
Show picture in defined frame
Hi,
first of all, thanks for this great component!
I'm trying to place a slider that takes 80vw x 80vh, and that shows the pictures:
- using their original ratio,
- without any cropping
- downsizing them if needed so that they best fit in the available space,
- centering them horizontally/vertically if needed
I have tried lots of combinations of options (width, autoWidth, fixedHeight...) and I don't seem to get it to work.
Any idea of how this could be achieved?
Thanks a lot!
Did you try "cover"?
https://splidejs.com/options/#cover
Close the issue due to the major version update. Feel free to create a new issue or open a new discussion.