-webkit-transform rotate - Pixelated images in Chrome

前端 未结 9 751
夕颜
夕颜 2020-12-13 06:36

Using -webkit-transform: rotate(-5deg); on a container div, Chrome renders the grid of images with really jagged edges. Whereas in FF (-moz-transform:

9条回答
  •  鱼传尺愫
    2020-12-13 07:15

    You could check out the answer to the question css transform, jagged edges in chrome

    Helped me out

    From the accepted answer:

    In case anyone's searching for this later on, a nice trick to get rid of those jagged edges on CSS transformations in Chrome is to add the CSS property -webkit-backface-visibility with a value of hidden. In my own tests, this has completely smoothed them out. Hope that helps.

提交回复
热议问题