Created
May 13, 2013 10:07
-
-
Save jelmerdemaat/5567322 to your computer and use it in GitHub Desktop.
CSS Mask (WebKit only)
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
/* CSS Mask (WebKit only) */ | |
div { | |
width: 300px; | |
height: 200px; | |
background: red; | |
mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0)); | |
} | |
div:last-child { | |
width: 300px; | |
height: 300px; | |
background: red; | |
mask-image: radial-gradient(closest-side circle, rgba(0,0,0,1), rgba(0,0,0,0)); | |
} | |
body { | |
background-color:#269; | |
background-image: linear-gradient(white 2px, transparent 2px), | |
linear-gradient(90deg, white 2px, transparent 2px), | |
linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px), | |
linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px); | |
background-size:100px 100px, 100px 100px, 20px 20px, 20px 20px; | |
background-position:-2px -2px, -2px -2px, -1px -1px, -1px -1px; | |
/* Src: http://lea.verou.me/css3patterns/#blueprint-grid */ | |
} |
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> | |
<h1>this is some text</h1> | |
<h1>this is some text</h1> | |
<h1>this is some text</h1> | |
<h1>this is some text</h1> | |
</div> | |
<div> | |
<h1>this is some text</h1> | |
<h1>this is some text</h1> | |
<h1>this is some text</h1> | |
<h1>this is some text</h1> | |
</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
{"view":"split-vertical","fontsize":"110","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment