Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Ngugisenior/6ceb79f33730c56f814928609283f5cd to your computer and use it in GitHub Desktop.
Save Ngugisenior/6ceb79f33730c56f814928609283f5cd to your computer and use it in GitHub Desktop.
.image {
position: absolute;
top: 50%;
left: 50%;
width: 120px;
height: 120px;
margin:-60px 0 0 -60px;
-webkit-animation:spin 4s linear infinite;
-moz-animation:spin 4s linear infinite;
animation:spin 4s linear infinite;
}
@-moz-keyframes spin { 100% { -moz-transform: rotate(360deg); } }
@-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } }
@keyframes spin { 100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); } }
<img class="image" src="http://placehold.it/200x200/" alt="" width="120" height="120">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment