Created
June 3, 2017 21:36
-
-
Save jpoechill/1cd887bddefdf8f7848774de0079e8e3 to your computer and use it in GitHub Desktop.
Udacity's hp-css for diagonal bgs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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