Created
August 6, 2013 11:06
-
-
Save glorialangreo/6163594 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
/** | |
* Spinner | |
*/ | |
body {margin: 100px;background-color:#434343} | |
.spinner {width:100%; height:20px;text-align:center;margin:0;padding:4px;} | |
.spinner ul { | |
display: inline-block; | |
padding: 0; | |
margin: 0; | |
} | |
.spinner ul li { | |
display: inline-block; | |
height: 10px; | |
width:4px; | |
margin: 0 0 0 -2px; | |
padding: 0; | |
background-color: #FFF; | |
transition: all .5s linear; | |
animation: 1s spin linear infinite; | |
animation-direction:alternate; | |
} | |
.spinner ul li:nth-child(1) {animation-delay: 0s;} | |
.spinner ul li:nth-child(2) {animation-delay: .125s;} | |
.spinner ul li:nth-child(3) {animation-delay: .25s;} | |
.spinner ul li:nth-child(4) {animation-delay: .325s;} | |
@-webkit-keyframes spin { | |
0% {opacity: 1;-webkit-transform:scaleY(1.2);} | |
25%, 75% {opacity: 0;} | |
} |
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="spinner"> | |
<ul> | |
<li></li> | |
<li></li> | |
<li></li> | |
<li></li> | |
</ul> | |
</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
// alert('Hello world!'); |
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
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"html"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment