Skip to content

Instantly share code, notes, and snippets.

@gunjanpatel
Last active April 11, 2018 09:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gunjanpatel/7951598ccca777987f7c7f8a704f9df0 to your computer and use it in GitHub Desktop.
Save gunjanpatel/7951598ccca777987f7c7f8a704f9df0 to your computer and use it in GitHub Desktop.
Photoshop Generic backdrop gradient CSS3
.bg-gradient {
/* Old browsers */ /* FF3.6-15 */ /* Chrome10-25,Safari5.1-6 */ /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
background: -moz-linear-gradient(bottom, rgb(230, 230, 231, 1) 0%, rgba(255,255,255,0) 100%);
/* FF3.6-15 */
background: -webkit-linear-gradient(bottom, rgb(230, 230, 231, 1) 0%,rgba(255,255,255,0) 70%);
/* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to top, rgb(230, 230, 231, 1) 0%,rgba(255,255,255,0) 70%);
/* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#00ffffff',GradientType=0 );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment