Created
May 31, 2017 15:36
-
-
Save LeaVerou/eb883d78f65e09fe2235f168289beab4 to your computer and use it in GitHub Desktop.
Diagonally colored text, with fallback
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
/** | |
* 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 | |
} |
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
<h1>SERVICE DESIGN DAYS</h1> |
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
// alert('Hello world!'); |
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
{"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