Skip to content

Instantly share code, notes, and snippets.

@secondfret
Created January 15, 2012 19:13
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 secondfret/1616878 to your computer and use it in GitHub Desktop.
Save secondfret/1616878 to your computer and use it in GitHub Desktop.
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
.test {
font-size: 2px;
height: 400px;
width: 400px;
background: gray;
margin: 50px;
float: left;
}
.test img {-webkit-transition: all 1s ease-out;}
.test:hover img{
transform-origin: bottom center;
-webkit-transform: rotateX(180deg);
}
<!-- content to be placed inside <body>…</body> -->
<div class="test">
<img src="http://lorempixum.com/400/200/city/1">
</div>
{"view":"split-vertical","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment