var swiper = new Swiper('#swiper-container01', { autoplay: 3000, loop: true, pagination: '.swiper-pagination', effect: 'flip', grabCursor: true, nextButton: '.swiper-button-next', prevButton: '.swiper-button-prev' }); $('#swiper-container01 .swiper-button-prev').on('click', function(e) { swiper.swipePrev() }); $('#swiper-container01 .swiper-button-next').on('click', function(e) { swiper.swipeNext(); }); var swipertt = new Swiper('#swiper-container02', { loop: true, effect: 'flip', grabCursor: true }); $('.swiper-prev').on('click', function(e) { swipertt.swipePrev() }); $('.swiper-next').on('click', function(e) { swipertt.swipeNext(); });