Skip to content

Instantly share code, notes, and snippets.

@dziudek
Created March 27, 2014 18:37
Show Gist options
  • Save dziudek/9814896 to your computer and use it in GitHub Desktop.
Save dziudek/9814896 to your computer and use it in GitHub Desktop.
3D tests
/**
* 3D tests
*/
body {
perspective: 1000;
}
#drawarea {
backface-visibility: visible;
background: rgba(0, 0, 0, 0.1);
border: 3px solid #aaa;
border-radius: 50%;
height: 300px;
left: 50%;
position: absolute;
transform-style: preserve-3d;
transform: translateX(-50%) rotateX(75deg);
width: 300px;
z-index: 1;
}
#wall {
backface-visibility: visible;
background: #fead00;
height: 100px;
position: relative;
transform: rotateY(90deg) rotateX(95deg);
transform-origin: 100% 100%;
transform-style: preserve-3d;
width: 100px;
z-index: 2;
}
<!-- content to be placed inside <body>…</body> -->
<div id="drawarea">
<div id="wall"></div>
</div>
// alert('Hello world!');
{"view":"split-vertical","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