Skip to content

Instantly share code, notes, and snippets.

@CliffCrerar
Created May 12, 2020 12:59
Show Gist options
  • Save CliffCrerar/5fbe689cf064cc5a63c377f40512503f to your computer and use it in GitHub Desktop.
Save CliffCrerar/5fbe689cf064cc5a63c377f40512503f to your computer and use it in GitHub Desktop.
Html spinner
<style>
.spinner-overlay {
position: absolute;
background:transparent;
display: flex;
justify-content: center;
align-items: center;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 10000;
background: rgba(0, 0, 0, 0.479);
}
.spinner{
border-left:3px solid blue;
border-top:3px solid white;
border-bottom:3px solid white;
border-right:3px solid white;
border-radius: 50%;
animation: spinner 3s infinite linear;
width:50px;
height: 50px;
z-index: 100001;
}
@keyframes spinner {
0% { transform: rotate(359deg);}
}
</style>
<body>
<div class="spinner-overlay">
<div class="spinner"></div>
</div>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment