CSS 3D transforms works at random in Chrome 16

前端 未结 3 407
南笙
南笙 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: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);
    

提交回复
热议问题