Created
October 15, 2012 11:36
-
-
Save dantz/3892041 to your computer and use it in GitHub Desktop.
The first commented line is your dabblet’s title
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
| /** | |
| * The first commented line is your dabblet’s title | |
| */ | |
| .browser { | |
| width: 400px; | |
| height: 250px; | |
| position: relative; | |
| perspective: 500; | |
| margin-top: 100px; | |
| margin-left: 50px; | |
| -webkit-perspective-origin: 50% 50%; | |
| -webkit-transform-style: preserve-3d; | |
| } | |
| .browser div { | |
| position: absolute; | |
| width: 100%; | |
| height: 100%; | |
| transition: transform 500ms ease-out; | |
| } | |
| .browser:hover div:nth-child(1) { | |
| transform: rotateY(45deg) translateZ(0px); | |
| } | |
| .browser:hover div:nth-child(2) { | |
| transform: rotateY(45deg) translateZ(20px); | |
| } | |
| .browser:hover div:nth-child(3) { | |
| transform: rotateY(45deg) translateZ(40px); | |
| } | |
| .browser:hover div:nth-child(4) { | |
| transform: rotateY(45deg) translateZ(60px); | |
| } |
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="browser"> | |
| <div style="background-color: #f00"></div> | |
| <div style="background-color: #0f0"></div> | |
| <div style="background-color: #00f"></div> | |
| <div style="background-color: #f0f"></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
| {"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"html"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment