Webkit border-radius and overflow bug when using any animation/transition

后端 未结 8 1940
悲哀的现实
悲哀的现实 2020-12-13 04:02

I am having getting a weird bug when I use a combination of overflow, border-radius, and transition. I have a div with an img inside o

8条回答
  •  忘掉有多难
    2020-12-13 04:33

    I had the same exact issue. Adding this to the parent container solved it for me (this is a LESS mixin).

    .transitionfix() {
        -webkit-backface-visibility: hidden;
        -moz-backface-visibility: hidden;
        -webkit-transform: translate3d(0, 0, 0);
        -moz-transform: translate3d(0, 0, 0)
    }
    

提交回复
热议问题