Created
March 6, 2014 18:20
-
-
Save zsimo/9396090 to your computer and use it in GitHub Desktop.
flip card with border
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container"> | |
<div class="transformed">CSS</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// alert('Hello world!'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"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