I'm building a website with a wrapper div that is rotated (transform:rotate(10deg)
). The text inside the div also rotates. I want the text straight, so I rotate it back (transform:rotate(-10deg)
). The text is straight again, but this causes blurry text in Chrome (latest version, mac). I tried:
-webkit-transform: rotate(.7deg) translate3d( 0, 0, 0);
-webkit-backface-visibility: hidden;
-webkit-font-smoothing: antialiased; (and other)
-webkit-transform-style: preserve-3d;
-webkit-transform: rotateZ(0deg);
It al didn't didn't solve the problem..
JSFiddle: http://jsfiddle.net/D69d4/10/
The weird thing is: it works perfectly in the jsfiddle.. But not on the actual website.
When I add -webkit-backface-visibility: hidden;
inside my style, the blurry text in Safari turns out sharp again, but in Chrome there is no difference. (I almost think it is making it worse in Chrome) (FF works fine)
I hope someone can help me with this, or give me a explanation what is going wrong.
Solution with the CSS text-shadow property The shadow will make the text appear blurred. Use a <div> with an id "blur". Then, set the color property to its “transparent” value and define the text-shadow property to give a shadow to the text.
It happens in Webkit browsers such as Chrome and Safari. Try adding:
-webkit-transform-origin: 50% 51%;
and you would be fine.
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