Skip to content

Instantly share code, notes, and snippets.

@sethrubenstein
Created March 3, 2014 01:49
Show Gist options
  • Save sethrubenstein/9317174 to your computer and use it in GitHub Desktop.
Save sethrubenstein/9317174 to your computer and use it in GitHub Desktop.
Fade to black background gradient
.element {
background-image: -webkit-linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
background-image: -moz-linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
background-image: -ms-linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
background-image: -o-linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment