Backface visibility broken in Chrome (certain platforms/versions)

前端 未结 5 1836
轮回少年
轮回少年 2021-01-04 16:07

So I\'ve looked around a bit, it seems that -webkit-backface-visibility functionality is a bit spotty. In Chrome 18 on Mac and Linux, it works fine. In Chrome 1

5条回答
  •  长情又很酷
    2021-01-04 16:27

    I found quite elegant workaround using transition-delay on the opacity to hide it middleway throught the animation.

    http://jsfiddle.net/TeXTQ/

    div {
        -webkit-transition-property: -webkit-transform, opacity;
        -webkit-transition-duration:2s, 0;
        -webkit-transition-timing-function:ease-in-out,ease-in-out;
        -webkit-transition-delay:0,1s;
    }
    div:hover {
        -webkit-transform: rotateX(-180deg) rotateY(0deg);
        opacity:0;
    }
    

提交回复
热议问题