我正要创建一个网络应用程序,但是当我尝试使用 jQuery 或 CSS3 为某些对象设置动画时,它们变得缓慢、不流畅,就像我在我的计算机(或 iOs 模拟器)上所做的那样。
我认为这是因为 iPhone 的功能不足以为对象设置动画(因为当我在 iOs 模拟器上尝试我的动画时,它们没问题。)但是 JQTouch 或 < strong>jQuery Mobile 在 iOs 上获得流畅的动画?
我会检查你的答案,同时检查 JQTouch 和 jQuery Mobile 的源代码。
感谢您的帮助!
最佳答案
你应该看看 GSAP jquery 插件:GSAP
Up to 20x faster than jQuery’s native animate() method. See the interactive speed comparison for yourself. Works exactly the same as the regular jQuery.animate() method. Same syntax. No need to change your code. Just load the plugin (and TweenMax or TweenLite & CSSPlugin) and you’re done.
关于jquery - iOs 的 CSS3 和 jQuery 动画缓慢,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17579649/