Skip to content

Instantly share code, notes, and snippets.

@zsimo
Created March 6, 2014 18:20
Show Gist options
  • Save zsimo/9396090 to your computer and use it in GitHub Desktop.
Save zsimo/9396090 to your computer and use it in GitHub Desktop.
flip card with border
/**
* flip card with border
*/
div {
height: 150px;
width: 150px;
transition: all 500ms ease;
}
.container {
perspective: 500px;
border: 1px solid black;
}
.transformed {
background-color: red;
/*transform: rotateY(180deg);*/
}
.transformed:hover {
/*transform-origin: top left;*/
transform: rotateY(180deg);
}
<div class="container">
<div class="transformed">CSS</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