Skip to content

Instantly share code, notes, and snippets.

@tahakorkem
Last active June 9, 2023 16:26
Show Gist options
  • Save tahakorkem/1a47d7ce4d30fbfbd091700c4f1aeaac to your computer and use it in GitHub Desktop.
Save tahakorkem/1a47d7ce4d30fbfbd091700c4f1aeaac to your computer and use it in GitHub Desktop.
Indeterminate progress bar using Bootstrap
<div class="progress progress-striped active">
<div class="progress-bar" role="progressbar"></div>
</div>
@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