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

后端 未结 8 1789
悲哀的现实
悲哀的现实 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)
    }
    
    0 讨论(0)
  • 2020-12-13 04:35

    I don't know if I'm understanding the problem correctly as the image isn't loading. If you add height: 100%; to .inner_block does it help your issue?

    http://jsfiddle.net/HuMrC/2/

    0 讨论(0)
  • 2020-12-13 04:35

    I have faced this issue on Safari(It's a known bug in safari); fixed by applying -webkit-mask-image and it work for me perfectly. cheers

    .block{
           -webkit-mask-image: -webkit-radial-gradient(white, black);
          }
    
    0 讨论(0)
  • 2020-12-13 04:35

    The above answer worked for me, but with a little tweak;

    border: solid 0px transparent;
    
    0 讨论(0)
  • 2020-12-13 04:46

    Here is what helped me:

    img {
      border: solid 2px transparent;
    }
    
    0 讨论(0)
  • 2020-12-13 04:49

    I've had an issue in the past like this while trying to zoom into a photo inside a div. I fixed it by adding rotation scale(1.05) rotate(0.02deg) to the scale transform (It actually removed the glitchy lines)

    My issue today is getting the glitch lines off a translateY div hover effect. Surprisingly enough, I got rid of them by removing overflow: hidden;

    Hopefully this helps future debuggers.

    0 讨论(0)
提交回复
热议问题