Skip to content

Instantly share code, notes, and snippets.

@brito
Created May 17, 2012 05:47
Show Gist options
  • Save brito/2716757 to your computer and use it in GitHub Desktop.
Save brito/2716757 to your computer and use it in GitHub Desktop.
Small Rotations
/* Small Rotations*/
body { perspective:5em; font:200px Georgia; background:#fff }
a { color:#b6d437; text-decoration:none }
@keyframes spin {
from{ transform:rotateY(-35deg) }
to { transform:rotateY(35deg) }}
section {
background:url(//small-demos.com/wp-content/uploads/logo.svg) no-repeat rgba(0,0,0,.3);
background-size:contain; height:2em; width:50%; margin:auto;
transform-origin:50%; animation:spin 1s alternate infinite cubic-bezier(.618, 0, 1,0) }
nav { opacity:0 }
nav:hover { opacity:1 }
<section></section>
{"view":"split","fontsize":"140","seethrough":"1","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment