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.
-webkit-backface-visibility: hidden;
If you are using transition
instead of transform
, -webkit-backface-visibility: hidden;
does not work. A jagged edge appears during animation for a transparent png file.
To solve it I used: outline: 1px solid transparent;
Adding a 1px transparent border will trigger anti-aliasing
outline: 1px solid transparent;
Alternatively, add a 1px transparent box-shadow.
box-shadow: 0 0 1px rgba(255,255,255,0);
Try 3d transform. This works like a charm!
/* Due to a bug in the anti-liasing*/
-webkit-transform-style: preserve-3d;
-webkit-transform: rotateZ(2deg);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With