Created
July 23, 2016 15:00
-
-
Save luizalbsilva/cfa15358e2c89e438ac345e81a366f84 to your computer and use it in GitHub Desktop.
#f4 {
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
.cubo { | |
transform-style: preserve-3d; | |
perspective: 1px; | |
position: relative; | |
left: 50%; | |
top: 100px; | |
} | |
.face { | |
width: 100px; | |
height: 100px; | |
position: absolute; | |
border: 1px solid; | |
} | |
#f1 { | |
background-color: rgba(255,0,0,0.35); | |
z-index: 3; | |
} | |
#f2 { | |
transform: translateZ(50px); | |
background-color: #B00; | |
background-color: rgba(0,0,255,0.35);} | |
#f3 { | |
transform: rotateY(90deg) translateX(50px); | |
background-color: rgba(0,255,0,0.35); | |
z-index: 2; | |
} | |
/* | |
#f4 { | |
transform: rotateX(90deg) translateX(-50px); | |
background-color: #700; | |
} | |
#f5 { | |
transform: rotateX(180deg) translateZ(-50px); | |
background-color: #500; | |
} | |
#f6 { | |
transform: rotateX(180deg) translateZ(-50px); | |
background-color: #300; | |
} | |
*/ |
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 class="cubo"> <div id="f1" class="face"></div> <div id="f2" class="face"></div> <div id="f3" class="face"></div> <div id="f4" class="face"></div> <div id="f5" class="face"></div> <div id="f6" class="face"></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