Answers for "swiperjs doesnot works inside modal"

0

swiperjs doesnot works inside modal

$(document).ready(function(){
    $(".modal").on('show.bs.modal', function() {
        setTimeout(function() {
            var swiper3 = new Swiper('.swiper-container', {
                pagination: '.swiper-pagination',
                nextButton: '.swiper-button-next',
                prevButton: '.swiper-button-prev',
                slidesPerView: 1,
                spaceBetween: 30,
                loop: true,
                effect: 'fade'
            });
        }, 500);
    });
});
Posted by: Guest on May-14-2021

Code answers related to "swiperjs doesnot works inside modal"

Code answers related to "Javascript"

Browse Popular Code Answers by Language