我很难弄清楚如何在移动到另一个滑块之前等待或延迟滑块约 1 秒。下面是JavaScript。我没有分享 html 代码,因为它太长而且我的问题看起来很乱。我希望你们中的一些人有想法。我真的很感谢你的帮助。
js代码
var swiper = new Swiper('.swiper-container', {
autoHeight: true, //enable auto height
mousewheelControl: false,
touchRatio: 0,
allowTouchMove: false,
shortSwipes: false,
speed:2000,
navigation: {
nextEl: '.swiper-button-next',
},
});