-
-
Save iamvdo/2216432 to your computer and use it in GitHub Desktop.
3D Transform (style,backface)
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
/** | |
* 3D Transform (style,backface) | |
*/ | |
section{ | |
margin-top:100px; | |
width:1200px; | |
height:700px; | |
background:white; | |
padding:20px; | |
perspective:600px; | |
display:table-cell; | |
vertical-align:middle; | |
/*perspective-origin:-300px 50%;*/ | |
} | |
header{ | |
width:300px; | |
height:300px; | |
margin: auto; | |
background:orangered; | |
border:3px solid darkred; | |
transform:rotateY(130deg); | |
transform-style:flat; | |
backface-visibility:hidden; | |
transform-style:preserve-3d; | |
} | |
h3{ | |
font:2em sans-serif; | |
width:150px; | |
height:150px; | |
background: deepskyblue; | |
border:2px solid dodgerblue; | |
margin:65px auto; | |
transform:translateZ(100px) rotateX(45deg); | |
transform-style:preserve-3d; | |
} | |
span{ | |
font-weight:bold; | |
transform:translateZ(25px); | |
} |
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
<!-- content to be placed inside <body>…</body> --> | |
<section> | |
<header> | |
<h3><span>BugDroid<span></h3> | |
</header> | |
</section> | |
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","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment