Created
November 14, 2012 12:25
-
-
Save mlpassos/4071829 to your computer and use it in GitHub Desktop.
The first commented line is your dabblet’s title
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
body{ | |
-webkit-perspective: 1000px; | |
-moz-perspective: 1000px; | |
-o-perspective: 1000px; | |
perspective: 1000px; | |
} | |
.round{ | |
width:100px; | |
height:100px; | |
background-color:rgba(0,0,0,1); | |
color:white; | |
border-radius:50px; | |
margin:10px; | |
position:relative; -webkit-transition: -webkit-transform 1s; | |
-moz-transition: -moz-transform 1s; | |
-o-transition: -o-transform 1s; | |
transition: transform 1s; | |
-webkit-transform-style: preserve-3d; | |
-moz-transform-style: preserve-3d; | |
-o-transform-style: preserve-3d; | |
transform-style: preserve-3d; | |
} | |
.round:hover{ | |
background-color:rgba(0,0,0,0.3); | |
box-shadow:1px 2px 1px gray, inset 1px 1px 1px 2px white; | |
-webkit-transform: rotateY( 180deg ); | |
-moz-transform: rotateY( 180deg ); | |
-o-transform: rotateY( 180deg ); | |
transform: rotateY( 180deg ); } | |
} | |
span{color:white;position:absolute;left:44%;top:38%;font-size:25px;} |
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="round"><span>1</span></div> | |
<div class="round"><span>2</span></div> | |
<div class="round"><span>3</span></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
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment