swiper breakpoints are not responsive

Created on 2 Aug 2016  路  5Comments  路  Source: nolimits4web/swiper

I have a swiper above 768px (ipad) slidesPerView: 'auto', and slidesPerGroup: 3,
but under 768 : horizSwiper.params.slidesPerView = 1;
horizSwiper.params.slidesPerGroup = 1;

i am using breakpoints it work well when i resize from big screen to small screen but when i get back to big screen everything goes wrong..... on refresh all is gd...
it is not responsive?!
an help?

my code:

var horizSwiper = new Swiper('#slider .screen', {
loop: true,
autoplay: 5000,
speed: 1200,
slidesPerView: 'auto',
slidesPerGroup: 3,
spaceBetween: 0,
keyboardControl: true,
breakpoints: {
767: {
slidesPerView: 1,
slidesPerGroup: 1
}
}

});

Most helpful comment

Swiper don't recalculate slide's width after window resized from small viewport to large, if slidesPerView property change from numeric to 'auto'. JSFiddle

All 5 comments

Would be good to see live example or JSFiddle with the issue to see it

Swiper don't recalculate slide's width after window resized from small viewport to large, if slidesPerView property change from numeric to 'auto'. JSFiddle

I'm having this issue, too. Any plans on fixing this?

After resize (breackpoint 980) autoplay not work

{ pagination: '.swiper-pagination-about', autoplay: 12000, loop: true, speed: 3000, initialSlide: 0, slidesPerView: 3, slidesPerGroup: 3, touchRatio: 1, paginationClickable: true, centeredSlides: false, roundLengths: false, //蟹薪邪褔械薪懈械 true "谢芯屑邪械褌" 褋谢邪泄写械褉 (褑懈泻谢) breakpoints: { 980: { autoplay: 6000, loop: true, speed: 2000, initialSlide: 0, slidesPerView: 2, slidesPerGroup: 1, paginationClickable: true, centeredSlides: true, observer: true, observeParents: true, roundLengths: false, } }, });

Issue is closed because of outdated/irrelevant/not actual/needed more information/inactivity.

If this issue is still actual and reproducible for latest version of Swiper, please create new issue and fill the issue template correctly:

  • Clearly describe the issue including steps to reproduce when it is a bug.
  • Make sure you fill in the earliest version that you know has the issue.
  • Provide live link or JSFiddle/Codepen or website with issue
Was this page helpful?
0 / 5 - 0 ratings

Related issues

nicolebo picture nicolebo  路  3Comments

leone510es picture leone510es  路  3Comments

magic-77 picture magic-77  路  3Comments

TomDeSmet picture TomDeSmet  路  3Comments

syedongit picture syedongit  路  3Comments