swiper 질문 드립니다.

swiper 질문 드립니다.

QA

swiper 질문 드립니다.

본문

swiper 질문 드립니다.

 

idx_notice에 

 

<script>
                    $(document).ready(function(){
                        $(".con4 .review_box .con4_box_list .idx_notice").addClass("swiper-container swiper2 swiper_css");
                        $(".con4 .review_box .idx_notice ul").addClass("swiper-wrapper");
                        $(".con4 .review_box .idx_notice ul li").addClass("swiper-slide");
                    });
                </script>

 

클래스를 스크립트를 활용해 추가했고, 

 

latest.skin.php에서 li의 안에 <div class="card"> 도 생성하였습니다.

근데 구동이 되질않아 질문드립니다.

 

 

스크립트도 잘 넣은 상태로 보입니다.

<script>
                    var swiper = new Swiper('.swiper-container.swiper', {
                        loop: true,
                        
                      effect: 'coverflow',
                      grabCursor: true,
                      centeredSlides: true,
                      slidesPerView: 'auto',
                        grabCursor: true,
                        
                      coverflowEffect: {
                        rotate: 30,
                        stretch: 1,
                        depth: 200,
                        modifier: 1,
                        slideShadows: false,
                        
                          
                      },
                      pagination: {
                        el: '.swiper-pagination.swiper_page',
                            
                        
                      },
                        autoplay: {
                            delay: 2500,
                            disableOnInteraction:false,
                        },
                    });
                  </script>

 

도와주세요 ㅠㅠ

이 질문에 댓글 쓰기 :

답변 1

추후에 클래스를 추가 하신게 문제 같은데 추후에 추가하신 이유가 있으신가요? 

추가로 하셨으면 아마 스와이프 다시 불러오는 옵션이 있을텐데 그걸 한번 실행해보세요.

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

회원로그인

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