@@ -2,7 +2,7 @@ import React from "react";
22import { trackProjectClick } from "../analytics" ;
33import { Swiper , SwiperSlide } from "swiper/react" ;
44import type { Swiper as SwiperType } from "swiper" ;
5- import { Navigation , Pagination , Keyboard , A11y , Autoplay } from "swiper/modules" ;
5+ import { Navigation , Pagination , Keyboard } from "swiper/modules" ;
66import "swiper/css" ;
77import "swiper/css/navigation" ;
88import "swiper/css/pagination" ;
@@ -206,14 +206,13 @@ export default function Projects() {
206206 </ div >
207207
208208 < Swiper
209- modules = { [ Navigation , Pagination , Keyboard , A11y , Autoplay ] }
209+ modules = { [ Navigation , Pagination , Keyboard ] }
210210 spaceBetween = { 28 }
211211 slidesPerView = { 1 }
212212 slidesOffsetBefore = { 40 }
213213 navigation
214214 pagination = { { clickable : true , dynamicBullets : true } }
215- keyboard = { { enabled : true } }
216- autoplay = { { delay : 5000 , disableOnInteraction : true , pauseOnMouseEnter : true } }
215+ keyboard = { { enabled : true , onlyInViewport : true , pageUpDown : false } }
217216 onInit = { ( swiper : SwiperType ) => {
218217 swiper . el . classList . toggle ( "fade-left" , ! swiper . isBeginning ) ;
219218 swiper . el . classList . toggle ( "fade-right" , ! swiper . isEnd ) ;
0 commit comments