可以在移动设备上触摸/滑动并在桌面上单击和拖动的 Javascript Gallery 滑块?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12882549/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-26 17:19:57  来源:igfitidea点击:

Javascript Gallery sliders that can be touch/swiped on mobile AND clicked and dragged on desktop?

javascriptjqueryslidergallery

提问by tim peterson

I'm looking for a Javascript/jQuery gallery slider plugin which works by touch/swiping left right on mobile devices AND by clicking and dragging on desktop/laptops.

我正在寻找一个 Javascript/jQuery 画廊滑块插件,它通过在移动设备上触摸/向右滑动以及在桌面/笔记本电脑上单击和拖动来工作。

Most I've seen can do swipe on mobile but aren't "draggable" on desktop/laptop. You have to click between images. Examples of that: http://galleria.io/http://swipejs.com/

我见过的大多数都可以在移动设备上滑动,但在台式机/笔记本电脑上不能“拖动”。您必须在图像之间单击。例如:http: //galleria.io/ http://swipejs.com/

采纳答案by tim peterson

After googling for a bit I answered my own question. Here's a good site http://www.iosscripts.com/iosslider/. The swiping/clicking works great on both my Mac laptop with 10.7.4 and on my iPhone 4 with iOS4.

谷歌搜索了一下后,我回答了我自己的问题。这是一个很好的网站http://www.iosscripts.com/iosslider/。在装有 10.7.4 的 Mac 笔记本电脑和装有 iOS4 的 iPhone 4 上,滑动/点击效果都很好。

回答by Rubén Padín Fernández

http://www.idangero.us/sliders/swiper/

http://www.idangero.us/sliders/swiper/

I like the transitions effects!

我喜欢过渡效果!