This is a (multiple allowed):
import { Swiper, SwiperSlide } from 'swiper/react';
import SwiperCore, { EffectCoverflow } from 'swiper';
import 'swiper/swiper.less';
import 'swiper/components/effect-coverflow/effect-coverflow.less';
SwiperCore.use([EffectCoverflow]);
centeredSlides={true}
spaceBetween="3%"
slidesPerView="auto"
loop={true}
autoplay={{
delay: 2000,
disableOnInteraction: false,
}}
effect="coverflow"
coverflowEffect={{
rotate: 0,
stretch: 0,
depth: 360,
modifier: 1,
slideShadows: false,
}}
>
< SwiperSlide > 1< /SwiperSlide >
< SwiperSlide > 2< /SwiperSlide >
< SwiperSlide > 3< /SwiperSlide >
>
i set autoplay options but autoplay is does not working;
autoplay can normal working
i set autoplay options but autoplay is does not working;
You should import and install the Autoplay component.
import SwiperCore, { Autoplay } from 'swiper'
SwiperCore.use([Autoplay])
Then the autoplay is working.
Most helpful comment
You should import and install the
Autoplaycomponent.import SwiperCore, { Autoplay } from 'swiper'SwiperCore.use([Autoplay])Then the autoplay is working.