Skip to content

Instantly share code, notes, and snippets.

@valhead
Created April 22, 2012 18:06
Show Gist options
  • Select an option

  • Save valhead/2465790 to your computer and use it in GitHub Desktop.

Select an option

Save valhead/2465790 to your computer and use it in GitHub Desktop.
Basic CSS transform
/**
* Basic CSS transform
*/
body {
background: #333;
}
div {
width:200px;
height:100px;
background:#ff00ff;
position:absolute;
top:100px;
left:100px;
/*transform: rotate(20deg) skewX(30deg);*/
transform: translate3d( 10px, 20px, 10px ) rotate3D;
}
<!-- content to be placed inside <body>…</body> -->
<div></div>
{"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