Created
March 30, 2015 21:22
-
-
Save gunnarbittersmann/580af6d02d3425e99d80 to your computer and use it in GitHub Desktop.
fake hexagon mask
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
| /** | |
| * fake hexagon mask | |
| */ | |
| div | |
| { | |
| width: 200px; | |
| position: relative; | |
| } | |
| div::before, div::after | |
| { | |
| content: ""; | |
| position: absolute; | |
| top: -30px; | |
| right: 0; | |
| bottom: -36px; | |
| left: 0; | |
| border: solid 0 white; | |
| border-width: 50px 0 100px; | |
| } | |
| div::before | |
| { | |
| transform: rotate(30deg); | |
| } | |
| div::after | |
| { | |
| transform: rotate(-30deg); | |
| } | |
| img | |
| { | |
| max-width: 100%; | |
| max-height: 100%; | |
| } |
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
| <div> | |
| <img src="https://upload.wikimedia.org/wikipedia/commons/1/17/Vitruvian.jpg" alt="Vitruvian Man by Leonardo da Vinci"/> | |
| </div> |
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
| // alert('Hello world!'); |
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
| {"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment