Created
April 11, 2012 15:30
-
-
Save anthonyringoet/2360054 to your computer and use it in GitHub Desktop.
flash of unstyled text mixin
This file contains 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
// include this after you declare your webfont | |
@mixin fout{ | |
.wf-loading &, | |
.wf-inactive &{ | |
visibility:hidden; | |
} | |
.wf-active &{ | |
visibility:visible; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I feel like the inactive class should actually belong with the active class, so that if your web font provider fails you get a fallback instead of an empty page?