Last active
October 9, 2018 13:36
-
-
Save yukulele/4281185 to your computer and use it in GitHub Desktop.
css transform make text-ugly (depending os/browser)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* css transform make text-ugly (depending os/browser) | |
*/ | |
div{ | |
border:1px solid red; | |
padding:15px; | |
margin:50px; | |
font-size:17px; | |
transform-origin:0 0; | |
transform:rotate(10.4deg); | |
} | |
.trZ{ | |
transform:rotate(10.4deg) translateZ(0); | |
} | |
.wc{ | |
will-change: transform; | |
} | |
em{ | |
color:#666; | |
font-size: .8em; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div>bla bla ________ ----- bla bla bla</div> | |
<div class="trZ">bla bla ________ ----- bla bla bla <em>translateZ(0)</em></div> | |
<div class="wc">bla bla ________ ----- bla bla bla <em>will-change</em></div> | |
<div class="trZ wc">bla bla ________ ----- bla bla bla <em>translateZ(0) + will-change</em></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// alert('Hello world!'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment