![[JavaScript] Swiper 예제 - 마우스오버시 일시정지 포스팅 썸네일 이미지](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FcZ5evB%2Fbtq7C4h47X1%2FAAAAAAAAAAAAAAAAAAAAAE2D-U8RwHVu8o8iN18wCTffH00Ge_bg8vusDSbSdmu7%2Fimg.jpg%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1753973999%26allow_ip%3D%26allow_referer%3D%26signature%3Dm6GoVAyZ6HINh%252BlZrpEaZXnXiZI%253D)
JavaScript/실전
[JavaScript] Swiper 예제 - 마우스오버시 일시정지
Swiper에서 autoplay 파라미터를 사용하여 자동재생 기능을 활성화할 수 있다. const swiper = new Swiper('.swiper-container', { autoplay: true, }); autoplay: true로 3초 마다 자동재생되는 슬라이드를 만들 수 있지만 그다지 추천하는 방법은 아니고 delay와 disableOnInteraction: false 로 세부 옵션을 추가하는 것이 좋다. const swiper = new Swiper('.swiper-container', { autoplay: { delay: 2000, disableOnInteraction: false, }, }); delay는 자동 재생 시간으로 유명하니 넘어가고 disableOnInteraction은 기본값..