swiper 질문 드립니다.

swiper 질문 드립니다.

QA

swiper 질문 드립니다.

답변 1

본문

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

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

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

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
  • 질문이 없습니다.
전체 10,635
© SIRSOFT
현재 페이지 제일 처음으로