Skip to content

Instantly share code, notes, and snippets.

@rnmp
Created May 22, 2011 07:11
Show Gist options
  • Save rnmp/985242 to your computer and use it in GitHub Desktop.
Save rnmp/985242 to your computer and use it in GitHub Desktop.
CSS3 gradients background clipping
h1 {
background: #eee -webkit-gradient(linear,
left 20, left 40,
color-stop(0, transparent),
color-stop(0.5, rgba(0, 0, 0, 0.33)),
color-stop(0.25, rgba(0, 0, 0, 0)),
color-stop(0.75, transparent));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment