Created
February 22, 2013 12:08
-
-
Save Chrisedmo/5013016 to your computer and use it in GitHub Desktop.
CSS3 gradients on text…
This file contains hidden or 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
/** | |
* CSS3 gradients on text… | |
*/ | |
h2[data-text] { | |
position: relative; | |
font-size: 20vh; | |
font-family: helvetica, sans-serif; | |
color: transparent; | |
} | |
h2[data-text]::after { | |
content: attr(data-text); | |
z-index: 10; | |
color: #e3e3e3; | |
position: absolute; | |
top: 0; | |
left: 0; | |
-webkit-mask-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0,0,0,0.0)), to(rgba(0,0,0,1.0))); |
This file contains hidden or 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
<h2 data-text="CSS3 Shadow text FTW!">CSS3 Shadow text FTW!</h2> |
This file contains hidden or 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 hidden or 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":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment