File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
src/views/Home/components/SpeakersCarousel Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 11import React , { FC } from "react" ;
2- import { Parallax } from "swiper" ;
2+ import { Autoplay , Parallax } from "swiper" ;
33import { Swiper , SwiperSlide } from "swiper/react" ;
44import styled from "styled-components" ;
55import { 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 ) => (
You can’t perform that action at this time.
0 commit comments