Skip to content

Instantly share code, notes, and snippets.

@Poltergeist
Created March 12, 2013 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Poltergeist/5143603 to your computer and use it in GitHub Desktop.
Save Poltergeist/5143603 to your computer and use it in GitHub Desktop.
3d Demo
/*
3d Demo
*/
#wrapper{
perspective:500px;
height:100px;
background:slategray;
}
#wrapper div{
height:100px;
width:25%;
float:left;
}
div{
background:gray;
}
#wrapper div{
background:gray;
transform:rotateX(45deg);
transition:transform 5s;
border:1px solid black;
box-sizing:border-box;
}
#wrapper div:nth-child(4n+1),#wrapper div:nth-child(4n+4){
transform:rotateX(-45deg);
}
<div id="wrapper">
<div id="one">1</div>
<div id="two">1</div>
<div id="three">1</div>
<div id="four">1</div>
</div>
// alert('Hello world!');
{"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