Skip to content

Instantly share code, notes, and snippets.

@juanbrujo
Created May 6, 2012 01:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juanbrujo/2606831 to your computer and use it in GitHub Desktop.
Save juanbrujo/2606831 to your computer and use it in GitHub Desktop.
CSS3 Vertical Rotation
/**
* CSS3 Vertical Rotation
*/
html {min-height: 100%;}
body {
background-image: linear-gradient(bottom, rgb(48,48,48) 30%, rgb(5,5,5) 47%);
}
@-webkit-keyframes girando {
from,20% {transform: rotateX(0deg);}
30%,40% {transform: rotateX(90deg);}
50%,60% {transform: rotateX(180deg);}
70%,80% {transform: rotateX(270deg);}
90%,to {transform: rotateX(360deg);}
}
img {
animation-name: girando;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-duration: 3s;
transform-style: preserve-3d;
margin-left: 100px;
}
/*
#diegol {
transform: rotate(90deg);
margin-top: 190px;
}*/
<div id="diegol">
<img src="http://www.be-studios.com/tests/foto_diegol.jpg">
</div>
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment