Swiper2. How to do two pager pagination Synchronize implementation, that is, when you click on one pager, the other pager also changes.

here is the html code:

clipboard.png

js:

var mySwiper = new Swiper (".swiper-container", {

pagination: ".pagination",
paginationClickable: true,
mode: "vertical",
mousewheelControl : true,
mousewheelControlForceToAxis : true

})
var mySwiper = new Swiper (".swiper-container", {

pagination: ".pagination1",
paginationClickable: true,
mode: "vertical",
mousewheelControl : true,
mousewheelControlForceToAxis : true

})

if you follow what is written above, you can use Synchronize when scrolling, but not Synchronize when you click.

Mar.02,2021

class is misspelled. The pager class is all pagination,. If you want to divide the name, you can add id or add another class name


. Edwin van der Sar sends flood Edwin van der Sar

Menu