Skip to content

Instantly share code, notes, and snippets.

@LeaVerou
Created May 31, 2017 15:36
Show Gist options
  • Save LeaVerou/eb883d78f65e09fe2235f168289beab4 to your computer and use it in GitHub Desktop.
Save LeaVerou/eb883d78f65e09fe2235f168289beab4 to your computer and use it in GitHub Desktop.
Diagonally colored text, with fallback
/**
* Diagonally colored text, with fallback
* Inspired from http://servicedesigndays.com/
*/
h1 {
max-width: 4.5em;
font: bold 300%/1 Helvetica Neue, sans-serif;
color: white;
}
@supports (-webkit-background-clip: text) {
h1 {
color: transparent;
background: linear-gradient(315deg, #262350 50%, white 0);
-webkit-background-clip: text;
}
}
body {
background: #00EDFF
}
<h1>SERVICE DESIGN DAYS</h1>
// alert('Hello world!');
{"view":"split","fontsize":"110","seethrough":"","prefixfree":"","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment