要为元素设置动画,我们可以使用 css 动画,也可以在 javascript 中进行。
阅读此内容,似乎 css 动画有望比 javascript 动画更快地呈现,因为浏览器可以在本机代码中执行 css 动画。此信息是从 2008 年至 2011 年的帖子中收集的。
使用 ios 6,情况仍然如此吗?在发行说明中,我发现了这个项目:
"WebKit no longer always creates hardware-accelerated layers
for elements with the -webkit-transform: preserve-3d option.
Authors should stop using this option as a way to get hardware
acceleration."
http://developer.apple.com/library/ios/#releasenotes/General/RN-iOSSDK-6_0/_index.html
由于我对网络动画还很陌生,所以我不确定当前的状态是什么,
谢谢