when scaling an element with css3 scale, it becomes pixelated until just after the animation is complete. I'm animating an element with a border

前端 未结 1 1126
生来不讨喜
生来不讨喜 2020-12-01 12:52

http://jsfiddle.net/nicktheandroid/5Ytnj/

When I add -webkit-backface-visibility: hidden; to the .circ element, it causes it to stay pixela

1条回答
  •  醉梦人生
    2020-12-01 13:34

    Okay so i think i've come up with a work around;

    essentially; don't use "scale". use "scale3d" and have it setup so that the largest you want the image is scale3d(1,1,1).

    Here is an example with the circle thing you had in there. I changed the scale to 5, because i didn't want to put 0.222222222222222222222222222222222 into the scale3d func...

    [edit] So i tried the jsfiddle demo again, on a computer with no hardware acceleration, and the pixelation effect was gone. So it seems that it's the same problem as with scale3d where it converts it into a texture and then scales it. you can do as in the circ3 div here.

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