Created
December 20, 2011 22:13
-
-
Save anonymous/1503527 to your computer and use it in GitHub Desktop.
Playing with CSS3
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
/** | |
* Playing with CSS3 | |
*/ | |
body { | |
background: #222; | |
min-height:100%; | |
} | |
img { | |
position: absolute; | |
top: 20%; | |
left: 30%; | |
-webkit-perspective: 600; | |
transform: rotate(45deg) rotate3d(45,45,0,0deg); | |
transform-style: preserve-3d; | |
transition: all 0.5s ease-in-out; | |
/* -webkit-box-reflect: below 0 -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(0.5, transparent), to(white));*/ | |
} | |
img:hover { | |
transform: rotate(180deg) rotate3d(45,45,0,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
<!-- content to be placed inside <body>…</body> --> | |
<img src="http://www.be-studios.com/tests/foto_diegol.jpg" /> |
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","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment