Created
March 28, 2012 06:48
-
-
Save brito/2224362 to your computer and use it in GitHub Desktop.
perspective
This file contains hidden or 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
/* perspective */ | |
* { transition:all 250ms } | |
body { perspective:1em; font-size:400px } | |
@keyframes r3d { | |
0%, 100% { /*transform:rotateX(137deg);*/ | |
background:hsla(0,100%,50%,1); | |
transform:scale(1) } | |
38% { /*transform:rotateY(137deg);*/ | |
background:hsla(137,100%,50%,.38); | |
transform:scale(.618) } | |
61% { /*transform:rotateZ(137deg);*/ | |
background:hsla(222,100%,50%,.61); | |
transform:scale(1.618) } | |
} | |
section { background:hsla(0,0,0,.3); | |
border-radius:1em; | |
margin:20% auto; | |
width:1em; height:1em; | |
transform-origin:50% 50%; | |
animation:r3d 1s infinite alternate } | |
/* todo: | |
http://css-tricks.com/snippets/css/webkit-keyframe-animation-syntax/ | |
http://desandro.github.com/3dtransforms/docs/perspective.html | |
*/ |
This file contains hidden or 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
<section></section> |
This file contains hidden or 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":"separate","seethrough":"1","prefixfree":"1","page":"result"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment