swiper breakpoints are not responsive
See original GitHub issueI 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 } }
});
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
idangero Swiper responsize break points not working
Hi I'm using iDangero Swiper on a website I'm doing and for some reason I cant get the responsive break points to work....
Read more >swiper breakpoints are not responsive - MSDN
I have a swiper above 768px (ipad) slidesPerView: 'auto', and slidesPerGroup: 3, but under 768 : horizSwiper.params.slidesPerView = 1;
Read more >How to Set Responsive Breakpoints in Swiper React
I've been asked on YouTube how to use breakpoints in the new react version of Swiper, so here it is. Hope this was...
Read more >Swiper - Responsive breakpoints - CodeSandbox
CodeSandbox is an online editor tailored for web applications.
Read more >Swiper Demo 37 Responsive Breakpoints - StackBlitz
<!DOCTYPE html> · <html lang="en"> · <head> · <meta charset="utf-8"> · <title>Swiper demo</title> · <meta name="viewport" · content="width=device-width, · initial- ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

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?