Skip to content

Instantly share code, notes, and snippets.

@dziudek
Created June 10, 2013 08:08
Show Gist options
  • Save dziudek/5747213 to your computer and use it in GitHub Desktop.
Save dziudek/5747213 to your computer and use it in GitHub Desktop.
CSS Loader - blocks
/**
* CSS Loader - blocks
*/
#loader {
animation-name: timer;
animation-duration: 0.75s;
animation-iteration-count: infinite;
animation-timing-function: linear;
background: transparent;
border-bottom: 32px solid #aaa;
box-sizing: border-box;
height: 32px;
margin: 0 0 0 12px;
position: relative;
width: 8px;
}
#loader:after,
#loader:before {
animation-name: timer;
animation-duration: 0.75s;
animation-iteration-count: infinite;
animation-timing-function: linear;
animation-delay: 0.5s;
background: transparent;
border-bottom: 32px solid #aaa;
box-sizing: border-box;
content: "";
height: 32px;
left: -12px;
position: absolute;
top: 0;
width: 8px;
}
#loader:after {
animation-delay: 0.25s;
left: 12px;
}
@keyframes timer {
from {
border-bottom-width: 32px;
}
50% {
border-bottom-width: 15px;
}
to {
border-bottom-width: 32px;
}
}
<div id="loader"></div>
// alert('Hello world!');
{"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