Skip to content

Instantly share code, notes, and snippets.

@swape
Last active December 30, 2015 08:19
Show Gist options
  • Save swape/7801582 to your computer and use it in GitHub Desktop.
Save swape/7801582 to your computer and use it in GitHub Desktop.
CSS Spinner
<style>
.spin {
border: 8px solid rgba(0, 0, 0, .1);
border-top: 8px solid rgba(100, 0, 0, .4);
border-radius: 100%;
height: 20px;
width: 20px;
animation: rot 1s infinite linear;
}
@keyframes rot {
from {transform: rotate(0deg);}
to {transform: rotate(359deg);}
}
</style>
<div class="spin"></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment