Last active
June 9, 2023 16:26
-
-
Save tahakorkem/1a47d7ce4d30fbfbd091700c4f1aeaac to your computer and use it in GitHub Desktop.
Indeterminate progress bar using Bootstrap
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="progress progress-striped active"> | |
<div class="progress-bar" role="progressbar"></div> | |
</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
@keyframes progress-bar { | |
0% { | |
transform: translateX(0) scaleX(0); | |
} | |
40% { | |
transform: translateX(0) scaleX(0.4); | |
} | |
100% { | |
transform: translateX(100%) scaleX(0.5); | |
} | |
} | |
.progress-bar { | |
width: 100%; | |
animation: progress-bar 0.5s linear, progress-bar 1s linear infinite 0.5s; | |
transform-origin: 0 50%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment