splide icon indicating copy to clipboard operation
splide copied to clipboard

Responsive splide

Open wokalove opened this issue 6 years ago • 4 comments

Hi! I have problem with resoponsive splide implementation. In case of screen size of width less than 500px I want one img showing.

And I don't know how to resize slide and img together - I want img fill all of space of one splide.

I made some resizes with @media in css, but I think that js changes will be necessary. Could you help me, please?

wokalove avatar Oct 07 '20 10:10 wokalove

I'm also looking for doing this. Did you find a solution?

nikonico avatar Oct 17 '20 11:10 nikonico

Is it not enough to use width: 100%?

img {
  width: 100%;
  height: auto;
}

NaotoshiFujita avatar Nov 16 '20 13:11 NaotoshiFujita

Did you try breakpoints

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

with the option "perPage"?

breakpoints: { 500: { perPage: 1, }, },

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