Skip to content

Instantly share code, notes, and snippets.

@MichaelArestad
Created January 28, 2012 22:24
Show Gist options
  • Save MichaelArestad/1695996 to your computer and use it in GitHub Desktop.
Save MichaelArestad/1695996 to your computer and use it in GitHub Desktop.
SUPER MEAT FACE!!!!!
/**
* SUPER MEAT FACE!!!!!
*/
html {
background: #c52815;
}
#superMeatFace {
display:block;
width: 600px;
margin:0px auto;
margin-top: 8%;
}
.eye {
display: inline-block;
background: #000;
width: 90px;
height: 100px;
margin: 80px 100px;
-webkit-border-radius: 40px;
-webkit-border-bottom-right-radius: 20px;
-webkit-border-bottom-left-radius: 20px;
-moz-border-radius: 40px;
-moz-border-radius-bottomright: 20px;
-moz-border-radius-bottomleft: 20px;
border-radius: 40px;
border-bottom-right-radius: 20px;
border-bottom-left-radius: 20px;
}
.pupil {
display: block;
background: #fff;
width: 40px;
height:10px;
margin: 18px 0 0 30px;
-webkit-border-top-left-radius: 10px;
-webkit-border-top-right-radius: 10px;
-moz-border-radius-topleft: 10px;
-moz-border-radius-topright: 10px;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
}
#nom {
display:block;
background: #000;
width: 80%;
height: 2px;
margin: 0px auto;
border: 60px solid #fff;
border-bottom: 40px solid #fff;
border-left: none;
border-right: none;
transition: height .5s;
-moz-transition: height .5s;
-webkit-transition: height .5s;
-o-transition: height .5s;
-webkit-border-bottom-right-radius: 40px;
-webkit-border-bottom-left-radius: 40px;
-moz-border-radius-bottomright: 40px;
-moz-border-radius-bottomleft: 40px;
border-bottom-right-radius: 40px;
border-bottom-left-radius: 40px;
}
#superMeatFace:hover #nom {
height: 150px;
transition: height .5s;
-moz-transition: height .5s;
-webkit-transition: height .5s;
-o-transition: height .5s;
}
<!-- content to be placed inside <body>…</body> -->
<div id="superMeatFace">
<div class="eye">
<div class="pupil"></div>
</div>
<div class="eye">
<div class="pupil"></div>
</div>
<div id="nom"></div>
</div>
{"view":"split-vertical","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment