我有一个带有拖动选项的轮播translate3d
。考虑到使用translate3d
为了转到下一张幻灯片,我最终翻译到了轮播的末尾。你能帮我找到解决方案吗?
下一张幻灯片逻辑:
goNext() {
this.carousel.style.transform = `translate3d(${-(++this.elementIndex * this.album.clientWidth)}px,0,0);
}
When i get to the end of the carousel:
I know that i can translate to 0 at the end but i want on the last slide to keep the drag option and to be able to drag to the first slide looking like is the next. Any ideas?
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)