Skip to content

Instantly share code, notes, and snippets.

@thomasmery
Created October 26, 2013 09:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomasmery/7167380 to your computer and use it in GitHub Desktop.
Save thomasmery/7167380 to your computer and use it in GitHub Desktop.
Untitled
#container {
perspective: 800px;
}
#d1 {
position: absolute;
width: 400px;
height: 200px;
background: olive;
}
#d2 {
position: absolute;
width: 400px;
height: 200px;
background: red;
transform-origin: right center;
backface-visibility: hidden;
transition: transform 1s;
transform:rotateX( 29deg );
}
<div id="container">
<div id="d1"></div>
<div id="d2"></div>
</div>
// alert('Hello world!');
{"view":"split","fontsize":"70","seethrough":"","prefixfree":"1","page":"result"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment