자동 슬라이드요~

자동 슬라이드요~

QA

자동 슬라이드요~

본문

이걸 자동으로 슬라이드 되게 할려면 어떻게 해야 하나요??

 


     lectureSwiper[q]= new Swiper(".lec_list_swiper"+q, {
            slidesPerView: "auto",
            // loop:true,
            observer: true,
            observeParents: true,
            noSwipe:true,
            noSwipingClass:'no_swiping',
            pagination: {
              el: $(this).find(".swiper-pagination"),
              type: "progressbar",
            },
            navigation: {
              nextEl: $(this).find(".swiper-button-next"),
              prevEl: $(this).find(".swiper-button-prev"),
            },
          });
        });
      }

이 질문에 댓글 쓰기 :

답변 1

안녕하세요 

아래의 내용을 참고해 보세요.

 

lectureSwiper[q] = new Swiper(".lec_list_swiper" + q, {
    slidesPerView: "auto",
    // loop:true,
    observer: true,
    observeParents: true,
    noSwipe: true,
    noSwipingClass: 'no_swiping',
    pagination: {
        el: $(this).find(".swiper-pagination"),
        type: "progressbar",
    },
    navigation: {
        nextEl: $(this).find(".swiper-button-next"),
        prevEl: $(this).find(".swiper-button-prev"),
    },
    autoplay: { // 자동 슬라이드 옵션 추가
        delay: 3000, // 슬라이드 전환 시간 (밀리초 단위)
        disableOnInteraction: false, // 사용자가 슬라이드와 상호작용해도 자동 슬라이드 계속 유지
    },
});

답변을 작성하시기 전에 로그인 해주세요.
전체 0
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT