Skip to content

Instantly share code, notes, and snippets.

@tyv
Created December 8, 2013 12:05
Show Gist options
  • Save tyv/7856532 to your computer and use it in GitHub Desktop.
Save tyv/7856532 to your computer and use it in GitHub Desktop.
Untitled
.h
{
width: 200px;
height: 200px;
margin: 50px;
aborder: 1px solid rgba(0,0,0,0.1);
perspective: 800px;
}
.a,
.h:after
{
position: absolute;
height: 330px;
width: 200px;
background: linear-gradient(to top, #c33301 0%,#c33301 100%) 0 100% no-repeat;
background-size: 100% 65%;
-webkit-transform: rotateX(-45deg) translateZ(-82px);
}
.h:after
{
content:'';
background: none;
border: 5px solid rgba(0,0,0,0.5);
}
<div class="ho">
<div class="h">
<div class="a"></div>
</div>
</div>
// alert('Hello world!');
{"view":"separate","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