Created
December 25, 2012 19:31
-
-
Save dziudek/4374991 to your computer and use it in GitHub Desktop.
CSS loader I
This file contains hidden or 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
/** | |
* CSS loader I | |
*/ | |
#loader { | |
animation-name: loading; | |
animation-duration: 2s; | |
animation-iteration-count: infinite; | |
background: #ccc; | |
border-radius: 50%; | |
border-left: 0px solid #d44; | |
border-right: 0px solid #d44; | |
box-sizing: border-box; | |
height: 20px; | |
margin: 100px; | |
width: 20px; | |
} | |
@keyframes loading { | |
from { | |
border-left: 20px solid #d44; | |
} | |
50% { | |
border-left: 0px solid #d44; | |
} | |
51% { | |
border-right: 0px solid #d44; | |
} | |
to { | |
border-right: 20px solid #d44; | |
} | |
} |
This file contains hidden or 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 id="loader"></div> |
This file contains hidden or 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 hidden or 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","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment