CSS 3D transforms works at random in Chrome 16

前端 未结 3 405
南笙
南笙 2021-01-12 02:26

I have a really strange problem where CSS 3D transforms work sometimes and sometimes not. Before upgrading to the latest version of Chrome it always worked but with version

相关标签:
3条回答
  • 2021-01-12 03:05

    Chromium blacklisted your GPU and refuse to do any 3d CSS.

    the solution is pretty easy: turn on "override software rendering list" option in "chrome://flags".

    see https://github.com/bartaz/impress.js/issues/40

    0 讨论(0)
  • 2021-01-12 03:15

    Go to the Chromium web SCM interface and check that your GPU isn't blacklisted.

    Also, go to chrome://gpu/ and check that Chrome reports 3D CSS as enabled.

    0 讨论(0)
  • 2021-01-12 03:25

    Here's something that I found that may be the issue. When you use the code

    -webkit-perspective: 600px;
    

    You need to have that in the parent of the element you want it to affect. If it's in the actual element, it need to be combined with the transform, like so

    -webkit-transform: perspective(600px) rotateY(45deg);
    
    0 讨论(0)
提交回复
热议问题