Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

why css transform rotate make text ugly

some browser (for me: firefox & chrome on XP) don't seem to apply anti-aliasing on text with CSS rotation

exemple: http://dabblet.com/gist/4281185

Why they apply on images but not text ?

like image 630
Yukulélé Avatar asked Dec 13 '12 23:12

Yukulélé


2 Answers

Use 3D transforms. Using 3D transform properties, even if you're not actually doing any 3D transforms can enhance performance as follow:

  1. It'll kick on the ol' GPU and get smoother performance.
  2. It will crap-up (thin out) the text in the default state of the button, so it's not a suprise when the transition starts.

WebKit has that nasty (I'd call it a bug) where text being transformed/transitioned looks all thin and crappy. The text will look good by default but you'll get flashing and thinning when the button is in transition or gets transformed.

hope this helps.

like image 117
wandarkaf Avatar answered Sep 17 '22 13:09

wandarkaf


Bad text quality is obviously "fault" of web browser you use, but you should just wait some time and it should be fixed. As web developers learn how to use new features, browser programmers must implement them, and that takes some time to work correctly. Check it in next version of the browser - if text rotation will be growing more and more popular browsers will handle it better, to display more web pages correctly.

like image 43
ghoot Avatar answered Sep 20 '22 13:09

ghoot