Last active
September 29, 2016 07:03
-
-
Save ktkaushik/949d2e4c7e008b8a070c619e8143d0f7 to your computer and use it in GitHub Desktop.
spinner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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