How to enable autoplay for breakpoints 1024 and 768. Also disable autoplay for the other breakpoints. #7386
Unanswered
rakeshbaral92
asked this question in
Q&A
Replies: 1 comment
-
I am implementing it in Angular. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Autoplay not working for the breakpoints 1024 and 768.
Below is the code. I am using swiper version "swiper": "^8.1.0",
coachSliderConfig: SwiperOptions = {
slidesPerView: 3,
spaceBetween: 20,
navigation: false,
autoHeight: false,
allowTouchMove: false,
loop: true,
effect: 'slide',
breakpoints: {
'0': {
slidesPerView: 1,
},
'640': {
slidesPerView: 1,
},
'768': {
slidesPerView: 2,
autoplay: {
delay: 1000,
disableOnInteraction: false
}
},
'1024': {
slidesPerView: 2,
autoplay: {
delay: 1000,
disableOnInteraction: false
}
},
'1199': {
slidesPerView: 3,
},
'1365': {
slidesPerView: 3,
},
'1600': {
slidesPerView: 3,
},
'1920': {
slidesPerView: 3,
},
},
};
Beta Was this translation helpful? Give feedback.
All reactions