Created
October 26, 2012 00:04
-
-
Save ramzesimus/3956244 to your computer and use it in GitHub Desktop.
CSS: Text Gradient + Text Shadow
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
.title { | |
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #9bc7e2), color-stop(100%, #9bc7e2)); | |
background-image: -webkit-linear-gradient(#ffffff,#9bc7e2); | |
-webkit-background-clip: text; | |
-webkit-text-fill-color: transparent; | |
color: #fff; | |
position: relative; | |
text-shadow: none; | |
} | |
.title:before { | |
background: none; | |
content: attr(data-text); | |
left: 0; | |
position: absolute; | |
text-shadow: 0 3px 0 rgba(0, 0, 0, .3); | |
top: 0; | |
z-index: -1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment