Last active
September 8, 2017 18:32
-
-
Save Deziminatix/dbdddabc8a0107f368c221e487b0d582 to your computer and use it in GitHub Desktop.
Angled Sections of Page
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
//Example on: http://fancyapps.com/fancybox/3/ (check header code) | |
header { | |
background-color: #ff6666; | |
padding: 0 50px; | |
position: relative; | |
} | |
header::before { | |
background: #fff none repeat scroll 0 0; | |
content: ""; | |
height: 500px; | |
left: 0; | |
position: absolute; | |
right: 0; | |
top: 100%; | |
transform: skewY(2deg); | |
transform-origin: right center 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment