用于在移动 Safari / ipad 中创建基于滑动的轮播的 Javascript 库或 jquery 插件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5463915/
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-25 17:17:31  来源:igfitidea点击:

Javascript library, or jquery plugin to create swipe-based carousel in mobile safari / ipad

javascriptjqueryipadtouchswipe

提问by phirschybar

Have you seen yahoo's ipad/tablet home page? The swipe effect for flipping through headlines is impressive. I have seen some workarounds in jquery (using the cycle plugin + the touchwipe plugin) but these all simply detect user gesture and then run the x- absolute position animation, rather than actually track the user's gesture. Know of a solution similar to yahoo's?

你看过雅虎的ipad/平板电脑主页吗?翻阅标题的滑动效果令人印象深刻。我在 jquery 中看到了一些解决方法(使用循环插件 + touchwipe 插件),但这些都只是检测用户手势,然后运行 ​​x-绝对位置动画,而不是实际跟踪用户的手势。知道类似于 yahoo 的解决方案吗?

回答by phirschybar

Found the solution: http://cubiq.org/iscroll-4

找到解决方案:http: //cubiq.org/iscroll-4

Used the "snap-to" option to re-create the carousel effect.

使用“对齐”选项重新创建轮播效果。

回答by Pixelgrey

Swipe JS is a good one. If this is the effect that you are looking for - http://swipejs.com

Swipe JS 是一个不错的选择。如果这是您正在寻找的效果 - http://swipejs.com

回答by MacMac

Not sure, but there is jQuery Mobile.

不确定,但有jQuery Mobile