Skip to content

Instantly share code, notes, and snippets.

@chestozo
Created November 17, 2012 13:35
Show Gist options
  • Save chestozo/4096014 to your computer and use it in GitHub Desktop.
Save chestozo/4096014 to your computer and use it in GitHub Desktop.
Untitled
.container{
perspective: 250px;
perspective-origin: 50% 50%;
width: 100px;
height: 30px;
}
.bl {
position: absolute;
width: 100px;
height: 30px;
background: #FE0;
text-align: center;
animation-name: rotate;
animation-duration: 2s;
animation-iteration-count: infinite;
}
@keyframes rotate {
0% { transform: rotate3d(1, 0, 0, 0deg); }
20% { transform: rotate3d(1, 0, 0, 180deg); }
40% { transform: rotate3d(1, 0, 0, 0deg); }
}
<div class="container">
<div class="bl">test</div>
</div>
{"view":"split-vertical","fontsize":"70","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment