Created
May 26, 2013 17:26
-
-
Save vedranjaic/5653422 to your computer and use it in GitHub Desktop.
css: CSS Loader
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
.loader { | |
text-align: center; | |
} | |
.loader span { | |
display: inline-block; | |
vertical-align: middle; | |
width: 10px; | |
height: 10px; | |
margin: 50px auto; | |
background: black; | |
border-radius: 50px; | |
-webkit-animation: loader 0.9s infinite alternate; | |
-moz-animation: loader 0.9s infinite alternate; | |
} | |
.loader span:nth-of-type(2) { | |
-webkit-animation-delay: 0.3s; | |
-moz-animation-delay: 0.3s; | |
} | |
.loader span:nth-of-type(3) { | |
-webkit-animation-delay: 0.6s; | |
-moz-animation-delay: 0.6s; | |
} | |
@-webkit-keyframes loader { | |
0% { | |
width: 10px; | |
height: 10px; | |
opacity: 0.9; | |
} | |
100% { | |
width: 10px; | |
height: 10px; | |
opacity: 0.1; | |
} | |
} | |
@-moz-keyframes loader { | |
0% { | |
width: 10px; | |
height: 10px; | |
opacity: 0.9; | |
} | |
100% { | |
width: 10px; | |
height: 10px; | |
opacity: 0.1; | |
} | |
} |
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="loader"> | |
<span></span> | |
<span></span> | |
<span></span> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment