Using the swiper plug-in, after setting slideTo, it will prevent autoplay, from making him jump and continue to play.

use the swiper plug-in. After setting slideTo, it automatically jumps from the fifth page to the first page. After the jump is completed, it will prevent autoplay, from continuing to play after he jumps.

Jun.22,2021

the description of the problem is not very detailed, so it feels like your slideTo should skip to a certain page. Autoplay uses a timer to do it. When you jump, clear the timer, record the value of page, and continue to setInterval when you are done.

Menu