Created
May 31, 2012 03:03
-
-
Save peterwooley/2840680 to your computer and use it in GitHub Desktop.
Curtains
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
/** | |
* Curtains | |
*/ | |
.screen, .curtains { | |
background:#ccc; | |
width:400px; | |
height:300px; | |
} | |
.curtains { | |
background:none; | |
overflow:hidden; | |
position:relative; | |
} | |
.curtains > * { | |
background:#c00; | |
box-shadow:0 0 25px rgba(0,0,0,.8); | |
position:absolute; | |
} | |
.bl, .br { | |
width:100px; | |
height:200px; | |
border-radius: 90% 60% 50% 50% / 60% 60% 40% 40%; | |
bottom:-80px; | |
left:-60px; | |
} | |
.br { | |
left:auto; | |
right:-60px; | |
} | |
.lc, .rc { | |
width:300px; | |
height:600px; | |
border-radius: 90% 60% 50% 50% / 60% 60% 40% 40%; | |
top:-400px; | |
left:-220px; | |
} | |
.rc { | |
left:auto; | |
right:-220px; | |
} | |
.tl, .tc, .tr { | |
width:300px; | |
height:150px; | |
border-radius: 90%; | |
left:-100px; | |
top:-75px; | |
} | |
.tc { | |
left:50px; | |
top:-100px; | |
} | |
.tr { | |
left:auto; | |
right:-100px; | |
} |
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 class="screen"> | |
<div class="curtains"> | |
<div class="bl"></div> | |
<div class="br"></div> | |
<div class="lc"></div> | |
<div class="rc"></div> | |
<div class="tl"></div> | |
<div class="tr"></div> | |
<div class="tc"></div> | |
</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
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment