Webkit backface visibility not working

后端 未结 7 1684
清歌不尽
清歌不尽 2020-11-28 11:50

I\'m building a simple example to flip a card using the -webkit-transform: rotateY property.

It was working fine a couple of days ago, but all of a sudd

7条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-28 12:12

    I had a similar problem with children of such an element when a child had a webkit-transform. I noted that I had to set the backface visibility on that element as well:

    
    
    
    Text

    So the solution is to use as well:

    #div2 {
        -webkit-transform: translate3d(0,0,0);
        -webkit-backface-visibility: hidden; /* again */
    }
    

提交回复
热议问题