0

I'm building an HTML5 mobile application that centres around having the main section of the page scroll through in an infinite carousel. It's gotta work for more than just images, it needs to work with text as well. The carousel also needs to follow your finger, as in you can drag pages left and right. To picture what I need, it basically needs to work like androids homepage, and flip back around to the beginning after it reaches the end. It also needs to be cross-platform.

I would prefer not having to implement an entirely new framework (like sencha touch, or jquery mobile), but I can do so if I have to, so long as it's self contained (doesn't conflict with the rest of my app, like by hijacking the DOM completely etc, sencha probably won't work)

I've evaluated a lot of carousel projects, but all of them so far are either not infinite, only support iOS, or don't follow your finger (or work with touch at all).

Does anyone know of any frameworks that satisfy this rather tall order?

4

1 回答 1

1

似乎您可以将 dojo 或 jquery 小部件用于轮播。Sencha touch 是一个很棒的框架,我强烈推荐它用于 html5 移动应用程序。

Dojo 轮播 http://dojotoolkit.org/reference-guide/1.9/dojox/mobile/Carousel.html

Jquery 水平幻灯片 http://www.zackgrossbart.com/hackito/touchslider/

为了让它无穷无尽,您可以只使用一个侦听器,当您到达轮播的末尾或接近结尾时,将数据附加到滑块。

于 2013-06-04T21:18:45.537 回答