Skip to content

Instantly share code, notes, and snippets.

@draganHR
Last active January 20, 2017 10:57
Show Gist options
  • Save draganHR/0a81aec52b34ff819509aa84a8cd2da7 to your computer and use it in GitHub Desktop.
Save draganHR/0a81aec52b34ff819509aa84a8cd2da7 to your computer and use it in GitHub Desktop.
Slim loading indicator CSS
@keyframes loading_animation {
0% {
width: 0;
}
20% {
width: 80%;
}
100% {
width: 90%;
}
}
.loader {
position: fixed;
width: 100%;
height: 3px;
background: #ffffff;
z-index: 10;
top: 0;
left: 0;
}
.loader .loader-inner {
position: relative;
display: block;
height: 3px;
background: #ff0000;
animation: loading_animation 12s ease-out 1;
width: 90%;
}
<div class="loader"><div class="loader-inner"></div></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment