Skip to content

Instantly share code, notes, and snippets.

@Nikolasgrizli
Created June 24, 2018 12:01
Show Gist options
  • Save Nikolasgrizli/ddbd929b383ff281bde3ae67380cde9e to your computer and use it in GitHub Desktop.
Save Nikolasgrizli/ddbd929b383ff281bde3ae67380cde9e to your computer and use it in GitHub Desktop.
gradient color letters -webkit only
@supports (-webkit-background-clip: text) {
.letter {
background-image: linear-gradient(170deg, rgba(234, 234, 234, 0) 15%, rgba(234, 234, 234, 0.4) 22%, rgba(194, 73, 119, 0.9) 45%, #c24977 100%);
-webkit-background-clip: text;
background-clip: text;
background-position: center -250%;
color: transparent
}
.letter.-animate{
background-position: 0% 150%;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment