jQuery + Webkit +...在 CSS3 转换/变换和 javascript 之间自动切换?
这听起来可能是一个奇怪的问题,也不容易解释:
Jquery 在任何桌面 Web 浏览器上都可以完美地工作,但正如您可能已经注意到的那样,它在 iphone/ipad/ipod 上相当笨拙,因为它不像 webkit 转换那样进行硬件加速......后者非常顺利......但它们仅适用于苹果产品。
我的问题是,你是否知道是否有人已经构建了一个系统,可以自动将 jquery 命令转换/翻译为 html5 命令。基于对浏览器的检测...
重点是基本上要有一些可以在任何地方完美运行的东西...
it may sound a weird question not easy also to explain:
Jquery works flawless on any desktop web browser but as you may have already noticed is pretty cluncky on iphone/ipad/ipod because is not hardware accelerated as the webkit transforms are...the latter are very smooth...but they work only on apple products.
my question is if do you know if there is someome out there that already build a system that automatically convert/translate jquery commands into html5 commands..based on detection of the browser...
the point is bascially to have something that works flawless everywhere ...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不确定您是否仍在寻找这个问题的答案,但我已经编写了一个插件,可以自动将某些 jQuery 动画增强为 CSS3 过渡等效项。您无需更改任何代码即可执行此操作。
它使 iPad/iPhone 开发变得非常容易,因为它会在检测到它们时使用硬件加速转换。
只需放入插件即可享受: http://playground.benbarnett.net/jquery-animate-增强/
Not sure if you're still looking for an answer to this but I've written a plugin that will automatically enhance certain jQuery animations to the CSS3 transition equivalent. You don't need to change any of your code to do so.
It makes iPad/iPhone development really easy as it will use the hardware accelerated transitions when it detects them.
Just drop the plugin in and enjoy: http://playground.benbarnett.net/jquery-animate-enhanced/