splide icon indicating copy to clipboard operation
splide copied to clipboard

Show picture in defined frame

Open fernandonajera opened this issue 6 years ago • 2 comments

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!

fernandonajera avatar Nov 26 '20 22:11 fernandonajera

Did you try "cover"?

https://splidejs.com/options/#cover

cybaer6 avatar Jan 31 '21 11:01 cybaer6

Close the issue due to the major version update. Feel free to create a new issue or open a new discussion.

NaotoshiFujita avatar Oct 09 '21 14:10 NaotoshiFujita