我需要帮助:我有一个经典的旋转木马箭头下和箭头前的图像;我需要改变事件,如点击,在一个事件切换下一个或前一个图像。
:
$('.next-arrow").click(function({
//Move the carousel to the next photo
})
$('.prev-arrow").click(function({
//Move the carousel to the prev photo
})
:
$('.mycarousel").svipe on right (function({
//Move the carousel to the next photo
})
$('.mycarousel").svipe on left(function({
//Move the carousel to the prev photo
})
谢谢!
看一下hammer.js - https://hammerjs.github.io/recognizer-swipe/。好像有你要找的东西。