Skip to content

Instantly share code, notes, and snippets.

@maxhoffmann
Created March 20, 2012 10:09
Show Gist options
  • Save maxhoffmann/2133785 to your computer and use it in GitHub Desktop.
Save maxhoffmann/2133785 to your computer and use it in GitHub Desktop.
CSS3 Transformations
/* CSS3 Transformations */
div {
width: 200px;
height: 200px;
padding-top: 85px;
margin: 20px;
background: RoyalBlue;
box-sizing: border-box;
color: white;
font-family: Helvetica;
font-size: 2em;
text-align: center;
float: left;
}
#eins { transform: rotate(6deg); }
#zwei { transform: scale(0.8); }
#drei { transform: translate(0,80px) }
#vier { transform: skew(-10deg) }
<div id="eins">
BOX
</div>
<div id="zwei">
BOX
</div>
<div id="drei">
BOX
</div>
<div id="vier">
BOX
</div>
{"view":"separate","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment