Skip to content

Instantly share code, notes, and snippets.

@desandro
Created December 16, 2011 15:27
Show Gist options
  • Select an option

  • Save desandro/1486456 to your computer and use it in GitHub Desktop.

Select an option

Save desandro/1486456 to your computer and use it in GitHub Desktop.
3D perspective inheritance
/* 3D perspective inheritance */
#container {
width: 320px;
height: 50px;
background: blue;
margin-top: 100px;
-webkit-perspective: 800;
-webkit-perspective-origin: 160px 240px;
}
.box {
width: 320px;
height: 480px;
background: red;
-webkit-transform: rotateY(45deg);
}
.box:hover {
}
<div id="container">
<div class="box"></div>
</div>
{"page":"css","view":"split-vertical"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment