Skip to content

Instantly share code, notes, and snippets.

@senorprogrammer
Created June 14, 2010 05:25
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 senorprogrammer/437306 to your computer and use it in GitHub Desktop.
Save senorprogrammer/437306 to your computer and use it in GitHub Desktop.
h1 {
@include linear-gradient(color-stops(#999, black));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
Or, if you prefer plain CSS:
h1 {
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%,
color-stop(0%, #999999),
color-stop(100%, #000000));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment