Created
July 14, 2014 03:16
-
-
Save mlpassos/3f6eb30df2edd0e658ce to your computer and use it in GitHub Desktop.
Untitled
This file contains hidden or 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
body { | |
} | |
.container { | |
width:100px; | |
height:200px; | |
border:1px solid red; | |
margin:0 auto; | |
perspective:600px; | |
transform-style:preserve-3d; | |
} | |
.box { | |
float:left; | |
background-color:purple; | |
width:100%; | |
height:100%; | |
border:1px solid green; | |
margin:0 auto; | |
transform-origin:top left; | |
transition: all 1s ease-in-out; | |
} | |
.box:hover { | |
transform: rotateY(-89deg); | |
} | |
.hidden { | |
width:50%; | |
height:50%; | |
background-color:orange; | |
margin:auto auto; | |
} |
This file contains hidden or 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="container"> | |
<div class="box"></div> | |
<div class="hidden"></div> | |
</div> |
This file contains hidden or 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 hidden or 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