Created
June 4, 2013 07:01
-
-
Save dziudek/5704102 to your computer and use it in GitHub Desktop.
CSS Loader - bordered dot
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 - bordered dot | |
*/ | |
#loader { | |
animation-name: timer; | |
animation-duration: 0.75s; | |
animation-iteration-count: infinite; | |
animation-timing-function: linear; | |
border: 2px solid #aaa; | |
border-radius: 50%; | |
box-sizing: border-box; | |
height: 30px; | |
position: relative; | |
width: 30px; | |
} | |
#loader:before { | |
animation-name: timer; | |
animation-duration: .5s; | |
animation-iteration-count: infinite; | |
animation-timing-function: linear; | |
border: 7px double #aaa; | |
border-radius: 50%; | |
box-sizing: border-box; | |
content: ""; | |
display: block; | |
height: 20px; | |
left: 50%; | |
margin: -10px 0 0 -10px; | |
position: absolute; | |
top: 50%; | |
width: 20px; | |
} | |
@keyframes timer { | |
from, to { | |
transform: scale(1.0); | |
} | |
50% { | |
transform: scale(1.35); | |
} | |
} |
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-vertical","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