CSS 矩阵与变换.哪个更快? [英] Css Matrix vs Transform. Which is Faster?

查看:23
本文介绍了CSS 矩阵与变换.哪个更快?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在网上搜索了一段时间,但找不到我的问题的答案,但希望社区知道.

I've been looking on the web for a while and can't find an answer to my question, but hopefully the community knows.

有没有人测试过 css3 maxtrix 和 css3 转换?我使用了很多转换,但我看到像 famo.us 和 Threejs 这样的库使用了更多的矩阵.矩阵是否有可能只是具有更好的性能收益?

Has anyone test css3 maxtrix compared to css3 transform? I'm using lots of transforms but I see libraries like famo.us and threejs using more of matrices. Is it possible that matrices just have a better performance yield?

推荐答案

Matrix 速度更快,但浏览器支持更差:

Matrix is more faster, but it has worse browser support:

http://jsperf.com/css-matrix-vs-transform-primitives

这篇关于CSS 矩阵与变换.哪个更快?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆