Created
March 12, 2013 14:59
-
-
Save Poltergeist/5143603 to your computer and use it in GitHub Desktop.
3d Demo
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
/* | |
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); | |
} |
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 id="wrapper"> | |
<div id="one">1</div> | |
<div id="two">1</div> | |
<div id="three">1</div> | |
<div id="four">1</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
// alert('Hello world!'); |
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