Skip to content

Instantly share code, notes, and snippets.

@markau
Created January 26, 2017 00:08
Show Gist options
  • Save markau/ef4facfcfe53d134193b805ea4938f26 to your computer and use it in GitHub Desktop.
Save markau/ef4facfcfe53d134193b805ea4938f26 to your computer and use it in GitHub Desktop.
Centre spinner
.loading{
position: absolute;
height: 100px;
width: 100px;
top: 50%;
left: 50%;
margin-left: -50px;
margin-top: -50px;
background: url(/Resources/Images/notched-circle.png);
background-size: 100%;
animation: spin 1s infinite linear;
}
@@keyframes spin {
0% {transform: rotate(0deg)}
100% {transform: rotate(360deg)}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment