Detect if computer can support 3D Transforms prope

2019-03-06 01:38发布

When I detect webkit, I add an additionnal stylesheet using 3D Transforms properties.
Although it is working fine on many different computers (All on the same chrome version), some don't render the animation properly.

Those are older computers with cheaper Graphic Card. (I guess that is what is causing the problem.)

Is there a better way to detect if a computer can handle Css 3D Transforms than rely on the browser detection?

1条回答
Summer. ? 凉城
2楼-- · 2019-03-06 02:39

Use Modernizr and its csstransforms3d class name.

More on these links:

http://modernizr.com/

http://modernizr.com/docs/#features-css

查看更多
登录 后发表回答