Skip to content

Instantly share code, notes, and snippets.

@jpoechill
Created June 3, 2017 21:36
Show Gist options
  • Save jpoechill/1cd887bddefdf8f7848774de0079e8e3 to your computer and use it in GitHub Desktop.
Save jpoechill/1cd887bddefdf8f7848774de0079e8e3 to your computer and use it in GitHub Desktop.
Udacity's hp-css for diagonal bgs
.contain::before {
content: '';
width: 100%;
height: 660px;
z-index: -1000;
background: linear-gradient(to bottom right, #F7F7F7, #EAFBFF);
transform-origin: left bottom;
position: absolute;
top: 0;
left: 0;
/* -webkit-transform: skew(0deg, -15deg); */
-moz-transform: skew(0deg, -15deg);
-ms-transform: skew(0deg, -15deg);
-o-transform: skew(0deg, -15deg);
transform: skew(0deg, -15deg);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment