Created
May 23, 2013 09:10
-
-
Save dziudek/5633798 to your computer and use it in GitHub Desktop.
CSS Loader - timer without pulse
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 - timer without pulse | |
*/ | |
#loader { | |
border: 3px solid #aaa; | |
border-radius: 50%; | |
box-sizing: border-box; | |
height: 48px; | |
position: relative; | |
width: 48px; | |
} | |
#loader:before { | |
animation-name: loader; | |
animation-duration: 0.75s; | |
animation-iteration-count: infinite; | |
animation-timing-function: linear; | |
background: #bbb; | |
border-radius: 2px; | |
content: ""; | |
display: block; | |
height: 2px; | |
left: 20px; | |
position: absolute; | |
top: 19px; | |
transform-origin: 0 50%; | |
width: 18px; | |
} | |
#loader:after { | |
animation-name: loader; | |
animation-duration: 3s; | |
animation-iteration-count: infinite; | |
animation-timing-function: linear; | |
background: #bbb; | |
border-radius: 2px; | |
content: ""; | |
display: block; | |
height: 4px; | |
left: 20px; | |
position: absolute; | |
top: 18px; | |
transform-origin: 0 50%; | |
width: 14px; | |
} | |
@keyframes loader { | |
from { | |
transform: rotateZ(0deg); | |
} | |
to { | |
transform: rotateZ(360deg); | |
} | |
} |
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