Skip to content

Commit 2696909

Browse files
committed
fix: fix swiper
1 parent 5aea5d7 commit 2696909

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/views/Home/components/SpeakersCarousel/SpeakerSwiper.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, {FC} from "react";
2-
import {Parallax} from "swiper";
2+
import {Autoplay, Parallax} from "swiper";
33
import {Swiper, SwiperSlide} from "swiper/react";
44
import styled from "styled-components";
55
import {Color} from "../../../../styles/colors";
@@ -53,15 +53,15 @@ const SpeakerSwiper: FC<React.PropsWithChildren<unknown>> = () => {
5353
{isLoading && <p>Loading</p>}
5454
{conferenceData.carrousel.enabled && cachedSpeakers && (
5555
<Swiper
56-
/*autoplay={{
57-
delay: 5000,
58-
disableOnInteraction: true,
59-
}}*/
56+
autoplay={{
57+
delay: 500,
58+
disableOnInteraction: true,
59+
}}
6060
slidesPerView={1}
6161
spaceBetween={7}
6262
speed={5000}
6363
parallax={true}
64-
//loop={true}
64+
loop={true}
6565
grabCursor={true}
6666
breakpoints={{
6767
340: {
@@ -76,14 +76,14 @@ const SpeakerSwiper: FC<React.PropsWithChildren<unknown>> = () => {
7676
},
7777
1024: {
7878
width: 1024,
79-
slidesPerView: 5,
79+
slidesPerView: 4,
8080
centeredSlides: true,
8181
spaceBetween: 30,
8282
autoHeight: true,
8383
},
8484
}}
8585
centeredSlides={true}
86-
modules={[/*Autoplay,*/ Parallax]}
86+
modules={[Autoplay, Parallax]}
8787
className="mySwiper"
8888
>
8989
{cachedSpeakers.map((speaker:ISpeaker) => (

0 commit comments

Comments
 (0)