Skip to content

Instantly share code, notes, and snippets.

@anthonyringoet
Created April 11, 2012 15:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anthonyringoet/2360054 to your computer and use it in GitHub Desktop.
Save anthonyringoet/2360054 to your computer and use it in GitHub Desktop.
flash of unstyled text mixin
// include this after you declare your webfont
@mixin fout{
.wf-loading &,
.wf-inactive &{
visibility:hidden;
}
.wf-active &{
visibility:visible;
}
}
@craigcooperxyz
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment