Skip to content

Instantly share code, notes, and snippets.

@brito
Created April 5, 2012 03:00
Show Gist options
  • Save brito/2307655 to your computer and use it in GitHub Desktop.
Save brito/2307655 to your computer and use it in GitHub Desktop.
perspective: momentum-space
/* perspective: momentum-space */
* { transition:all 24.9ms linear }
body { perspective:.6em; font-size:400px;
background:#000 }
@keyframes spin {
38.1% { transform:rotateX();
border-radius:2.618em }}
section { background:hsla(222.45,61.8%,38.1%,.3);
margin:20% auto; transform:rotateY(45deg);
width:1em; height:1em;
transform-origin:50%;
animation:spin 25.9ms infinite alternate }
/* todo:
http://css-tricks.com/snippets/css/webkit-keyframe-animation-syntax/
http://desandro.github.com/3dtransforms/docs/perspective.html
*/
<section></section>
{"view":"separate","seethrough":"1","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment