1 // Disable animation if transitions are disabled
2 @if $enable-transitions {
3 @keyframes progress-bar-stripes {
4 from { background-position: $progress-height 0; }
5 to { background-position: 0 0; }
11 height: $progress-height;
12 overflow: hidden; // force rounded corners by cropping it
14 @include font-size($progress-font-size);
15 background-color: $progress-bg;
16 @include border-radius($progress-border-radius);
17 @include box-shadow($progress-box-shadow);
22 flex-direction: column;
23 justify-content: center;
25 color: $progress-bar-color;
28 background-color: $progress-bar-bg;
29 @include transition($progress-bar-transition);
32 .progress-bar-striped {
33 @include gradient-striped();
34 background-size: $progress-height $progress-height;
37 @if $enable-transitions {
38 .progress-bar-animated {
39 animation: $progress-bar-animation-timing progress-bar-stripes;
41 @if $enable-prefers-reduced-motion-media-query {
42 @media (prefers-reduced-motion: reduce) {