Created
November 14, 2013 04:04
-
-
Save carlos-sanchez/7461166 to your computer and use it in GitHub Desktop.
Text Gradients.
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
/* CSS text gradients */ | |
h2[data-text] { | |
position: relative; | |
} | |
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)), color-stop(50%, rgba(0,0,0,1)), to(rgba(0,0,0,0))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment