Skip to content

Instantly share code, notes, and snippets.

@ktkaushik
Last active September 29, 2016 07:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ktkaushik/949d2e4c7e008b8a070c619e8143d0f7 to your computer and use it in GitHub Desktop.
Save ktkaushik/949d2e4c7e008b8a070c619e8143d0f7 to your computer and use it in GitHub Desktop.
spinner
<div class="clearfix loader" style="margin: 18px 15px 0; display: none;">
<div class="spinner" style="float: left; display: inline-block;"></div>
<!-- optional -->
<div class="" style="float: left; display: inline-block; color: #CCCCCC">Auto Saving</div>
</div>
.center-page {
top: 50%;
left: 50%;
right: 50%;
bottom: 50%;
margin-top: -40px;
margin-left: -40px;
position: absolute;
}
.spinner {
width: 30px;
height: 30px;
margin-top: -4px;
margin-right: 10px;
border-radius: 100%;
background-color: #333;
-webkit-animation: sk-scaleout 1s infinite ease-in-out;
animation: sk-scaleout 1s infinite ease-in-out;
}
@-webkit-keyframes sk-scaleout {
0% { -webkit-transform: scale(0) }
100% {
-webkit-transform: scale(1.0);
opacity: 0;
}
}
@keyframes sk-scaleout {
0% {
-webkit-transform: scale(0);
transform: scale(0);
} 100% {
-webkit-transform: scale(1.0);
transform: scale(1.0);
opacity: 0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment