A Pen by Andrew Gribben on CodePen.
Created
May 30, 2016 18:37
-
-
Save andrewgribben/5df060e574f84bf3b0e497bad82c519d to your computer and use it in GitHub Desktop.
Deadzone Image hex
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
<div></div> |
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
div { | |
width: 280px; | |
height: 280px; | |
background: #1e90ff; | |
-webkit-clip-path: polygon(10% 0, 90% 0, 100% 10%, 100% 70%, 100% 100%, 10% 100%, 0 90%, 0 10%); | |
clip-path: polygon(10% 0, 90% 0, 100% 10%, 100% 70%, 100% 100%, 10% 100%, 0 90%, 0 10%); | |
} | |
/* Center the demo */ | |
html, body { height: 100%; } | |
body { | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment