Last active
January 20, 2017 10:57
-
-
Save draganHR/0a81aec52b34ff819509aa84a8cd2da7 to your computer and use it in GitHub Desktop.
Slim loading indicator CSS
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
@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%; | |
} |
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 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