You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to slide per items visible on screen. When slidesPerView is set to 'auto' and each item has a fixed width there is no way to tell how many items there will be on the screen (when swiper has responsive width that is dependent on the fluid parent container) on the given moment, so it would be great if slidesPerGroup could also be set to auto so that when clicking next/prev swiper would scroll on the amount of visible items.
The text was updated successfully, but these errors were encountered:
This would be awesome to have! Wondering if we can tell from swiper the number of slides in the current view and then you could just set that number to slidesPerGroup
@nolimits4web I tried setting slidesPerGroup: 'auto' in the options using v.6.8.2 but got an error:
first I thought that it's related to SSR (I use Nuxt), but the error remains even if I wrap swiper inside
I also tried combining {slidesPerView: 'auto', slidesPerGroupAuto: true}, that didn't produce any errors, but I still have the swiper progress only for 1 item per click
slidesPerGroupAuto doesn't seem to work for me, with the same reason @AndrewBogdanovTSS mentioned. Looks like slidesPerGroup and slidesPerView: auto doesn't work when used together.
What I want to achieve:
I would like to slide per items visible on screen. When slidesPerView is set to 'auto' and each item has a fixed width there is no way to tell how many items there will be on the screen (when swiper has responsive width that is dependent on the fluid parent container) on the given moment, so it would be great if slidesPerGroup could also be set to auto so that when clicking next/prev swiper would scroll on the amount of visible items.
The text was updated successfully, but these errors were encountered: