Skip to content

Instantly share code, notes, and snippets.

@lgarron
Created December 7, 2016 19:47
Show Gist options
  • Save lgarron/b4638860cc170f5dc1f02336b62a0b71 to your computer and use it in GitHub Desktop.
Save lgarron/b4638860cc170f5dc1f02336b62a0b71 to your computer and use it in GitHub Desktop.
hstspreload spinner
html, body {
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.spinner {
width: 2em;
height: 2em;
border-radius: 1.25em;
border: 0.25em solid rgba(0, 0, 0, 0);
border-top: 0.25em solid rgba(0, 0, 0, 0.7);
border-right: 0.25em solid rgba(0, 0, 0, 0.7);
animation: spinnerRotate 1s linear infinite;
}
@keyframes spinnerRotate{
from { transform:rotate(0deg); }
to { transform:rotate(360deg); }
}
<div id="spinner" class="spinner"></div>
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment