【发布时间】:2020-06-03 07:21:49
【问题描述】:
当我使用 GLide.js 在元素之间滑动时如何获取当前幻灯片索引/编号
const config = {
type: "carousel",
perView: 5,
startAt: 2,
perTouch: 1,
focusAt: "center",
};
new Glide(".glide", config)
.on("swipe.end", function (event) {
console.log(event);
})
.mount();
【问题讨论】:
标签: javascript jquery carousel swiper glidejs