简体   繁体   English

AppStore 在 html 中的截图库?

[英]AppStore's screenshot gallery in html?

I'm trying to do the screenshot gallery of an app from the AppStore but in a web app in html.我正在尝试从 AppStore 制作应用程序的屏幕截图库,但在 html 的 web 应用程序中。

I've actually get it but the problem is that it scrolls REALLY slow.我实际上已经明白了,但问题是它的滚动速度真的很慢。

To do the touch/swipe functions I've used the code from here:要执行触摸/滑动功能,我使用了这里的代码:

http://quirksmode.org/m/tests/scrollayer.html http://quirksmode.org/m/tests/scrolllayer.html

In the example, the div's are scrolled smoothly but not in my site with my div's...在示例中,div 平滑滚动,但在我的站点中没有我的 div...

Does anyone know what can be happening?有谁知道会发生什么? Does anyone know a proper way to do it?有谁知道正确的方法吗?

This is my (under-developement) site:这是我的(开发中)网站:

http://www.actec.cat/iphone/#projectes_pre http://www.actec.cat/iphone/#projectes_pre

I'm testing it in an iPhone 4.我在 iPhone 4 上测试它。

Thanks.谢谢。

I finally solved using webkit transforms (translate3d) instead of using javascript.我终于解决了使用 webkit 转换(translate3d)而不是使用 javascript。

The problem was that javascript was taking care of moving the object.问题是 javascript 负责移动 object。

For example, I was using:例如,我正在使用:

testElement.style.marginLeft="newposition px";

That was painfully slow in iOS devices.这在 iOS 设备中非常缓慢。

Now I use:现在我使用:

testElement.style.webkitTransform='translate3d("newposition px",0,0);

And it works as smooth as it should.它工作得尽可能顺利。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM