11@import ' ../core/style/variables' ;
22@import ' ../core/style/vendor-prefixes' ;
3+ @import ' ../core/style/noop-animation' ;
34
45$mat-progress-bar-height : 5px !default ;
56$mat-progress-bar-full-animation-duration : 2000ms !default ;
67$mat-progress-bar-piece-animation-duration : 250ms !default ;
78
89
910.mat-progress-bar {
11+ @include _noop-animation ();
1012 display : block ;
1113 // Height is provided for mat-progress-bar to act as a default.
1214 height : $mat-progress-bar-height ;
@@ -33,6 +35,7 @@ $mat-progress-bar-piece-animation-duration: 250ms !default;
3335 // The progress bar buffer is the bar indicator showing the buffer value and is only visible
3436 // beyond the current value of the primary progress bar.
3537 .mat-progress-bar-buffer {
38+ @include _noop-animation ();
3639 transform-origin : top left ;
3740 transition : transform $mat-progress-bar-piece-animation-duration ease ;
3841 }
@@ -45,13 +48,15 @@ $mat-progress-bar-piece-animation-duration: 250ms !default;
4548
4649 // The progress bar fill fills the progress bar with the indicator color.
4750 .mat-progress-bar-fill {
51+ @include _noop-animation ();
4852 animation : none ;
4953 transform-origin : top left ;
5054 transition : transform $mat-progress-bar-piece-animation-duration ease ;
5155 }
5256
5357 // A pseudo element is created for each progress bar bar that fills with the indicator color.
5458 .mat-progress-bar-fill ::after {
59+ @include _noop-animation ();
5560 animation : none ;
5661 content : ' ' ;
5762 display : inline-block ;
@@ -76,23 +81,27 @@ $mat-progress-bar-piece-animation-duration: 250ms !default;
7681 & [mode = ' indeterminate' ],
7782 & [mode = ' query' ] {
7883 .mat-progress-bar-fill {
84+ @include _noop-animation ();
7985 transition : none ;
8086 }
8187 .mat-progress-bar-primary {
8288 // Avoids stacked animation tearing in Firefox >= 57.
89+ @include _noop-animation ();
8390 @include backface-visibility (hidden );
8491 animation : mat- progress- bar- primary- indeterminate- translate
8592 $mat-progress-bar-full-animation-duration infinite linear ;
8693 left : -145.166611% ;
8794 }
8895 .mat-progress-bar-primary.mat-progress-bar-fill ::after {
8996 // Avoids stacked animation tearing in Firefox >= 57.
97+ @include _noop-animation ();
9098 @include backface-visibility (hidden );
9199 animation : mat- progress- bar- primary- indeterminate- scale
92100 $mat-progress-bar-full-animation-duration infinite linear ;
93101 }
94102 .mat-progress-bar-secondary {
95103 // Avoids stacked animation tearing in Firefox >= 57.
104+ @include _noop-animation ();
96105 @include backface-visibility (hidden );
97106 animation : mat- progress- bar- secondary- indeterminate- translate
98107 $mat-progress-bar-full-animation-duration infinite linear ;
@@ -101,6 +110,7 @@ $mat-progress-bar-piece-animation-duration: 250ms !default;
101110 }
102111 .mat-progress-bar-secondary.mat-progress-bar-fill ::after {
103112 // Avoids stacked animation tearing in Firefox >= 57.
113+ @include _noop-animation ();
104114 @include backface-visibility (hidden );
105115 animation : mat- progress- bar- secondary- indeterminate- scale
106116 $mat-progress-bar-full-animation-duration infinite linear ;
@@ -110,6 +120,7 @@ $mat-progress-bar-piece-animation-duration: 250ms !default;
110120 & [mode = ' buffer' ] {
111121 .mat-progress-bar-background {
112122 // Avoids stacked animation tearing in Firefox >= 57.
123+ @include _noop-animation ();
113124 @include backface-visibility (hidden );
114125 animation : mat- progress- bar- background- scroll
115126 $mat-progress-bar-piece-animation-duration infinite linear ;
0 commit comments