Skip to content

Instantly share code, notes, and snippets.

@valhead
Created April 22, 2012 15:47
Show Gist options
  • Select an option

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

Select an option

Save valhead/2464778 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);
}
<!-- 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