Last active
January 26, 2017 15:38
-
-
Save dannydickson/3176255a614347cdd4c244bf9923ad73 to your computer and use it in GitHub Desktop.
Angled Image Overlay CSS
This file contains hidden or 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
.class-name { | |
background: #ff6319; | |
background: -moz-linear-gradient(-45deg, #ff6319 0%, #ffa719 100%); | |
background: -webkit-linear-gradient(-45deg, #ff6319 0%, #ffa719 100%); | |
background: linear-gradient(135deg, #ff6319 0%, #ffa719 100%); | |
opacity: .93; | |
content: ""; | |
display: block; | |
position: absolute; | |
top: 0; | |
width: 64%; | |
height: 100%; | |
-ms-transform: skewX(-10deg); | |
-webkit-transform: skewX(-10deg); | |
transform: skewX(-10deg); | |
right: -8%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment