채택완료

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개 / 댓글 1개

채택된 답변
+20 포인트
2020-09-02 (수) 19:52:24

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

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

답변에 대한 댓글 1개

latest부분을 추가해서 썸파일을 바꿔서 코드 작성하니 되네요 ㅎㅎ 해결하였습니다 ㅎㅎ

답변을 작성하려면 로그인이 필요합니다.