본문 바로가기 메뉴 바로가기

개발자의 끄적끄적..🥳

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

개발자의 끄적끄적..🥳

검색하기 폼
  • ☆ (56)
    • My Life (1)
      • 포스팅 (1)
    • Development (55)
      • JAVA (16)
      • Database & SQL (4)
      • Javascript & jQuery (6)
      • Spring (2)
      • React (1)
      • Git (2)
      • Error (6)
      • TIP (5)
      • .etc (13)
  • 방명록

swiper autoplay (1)
react swiper autoplay 안될 때

import SwiperCore, { EffectCoverflow, Pagination, Autoplay } from "swiper"; function content() { SwiperCore.use([Autoplay]); return ( ); } export default content; Autoplay와 SwiperCore도 같이 import후, autoplay={{ delay: 2000, disableOnInteraction: false }} 자동재생 관련 옵션을 주면 된다. delay : 시간설정 disableOnInteraction : 클릭하거나 이미지를 넘겼을 경우 자동재생 멈춤

Development/.etc 2023. 6. 11. 21:34
이전 1 다음
이전 다음
링크
최근에 올라온 글
Total
Today
Yesterday

Blog is powered by Tistory / Designed by Tistory

티스토리툴바