@@ -40,7 +40,6 @@ $mat-progress-bar-piece-animation-duration: 250ms !default;
40
40
// The progress bar buffer is the bar indicator showing the buffer value and is only visible
41
41
// beyond the current value of the primary progress bar.
42
42
.mat-progress-bar-buffer {
43
- @include _noop-animation ();
44
43
transform-origin : top left ;
45
44
transition : transform $mat-progress-bar-piece-animation-duration ease ;
46
45
@@ -58,7 +57,6 @@ $mat-progress-bar-piece-animation-duration: 250ms !default;
58
57
59
58
// The progress bar fill fills the progress bar with the indicator color.
60
59
.mat-progress-bar-fill {
61
- @include _noop-animation ();
62
60
animation : none ;
63
61
transform-origin : top left ;
64
62
transition : transform $mat-progress-bar-piece-animation-duration ease ;
@@ -70,7 +68,6 @@ $mat-progress-bar-piece-animation-duration: 250ms !default;
70
68
71
69
// A pseudo element is created for each progress bar bar that fills with the indicator color.
72
70
.mat-progress-bar-fill ::after {
73
- @include _noop-animation ();
74
71
animation : none ;
75
72
content : ' ' ;
76
73
display : inline-block ;
@@ -95,27 +92,23 @@ $mat-progress-bar-piece-animation-duration: 250ms !default;
95
92
& [mode = ' indeterminate' ],
96
93
& [mode = ' query' ] {
97
94
.mat-progress-bar-fill {
98
- @include _noop-animation ();
99
95
transition : none ;
100
96
}
101
97
.mat-progress-bar-primary {
102
98
// Avoids stacked animation tearing in Firefox >= 57.
103
- @include _noop-animation ();
104
99
@include backface-visibility (hidden );
105
100
animation : mat- progress- bar- primary- indeterminate- translate
106
101
$mat-progress-bar-full-animation-duration infinite linear ;
107
102
left : -145.166611% ;
108
103
}
109
104
.mat-progress-bar-primary.mat-progress-bar-fill ::after {
110
105
// Avoids stacked animation tearing in Firefox >= 57.
111
- @include _noop-animation ();
112
106
@include backface-visibility (hidden );
113
107
animation : mat- progress- bar- primary- indeterminate- scale
114
108
$mat-progress-bar-full-animation-duration infinite linear ;
115
109
}
116
110
.mat-progress-bar-secondary {
117
111
// Avoids stacked animation tearing in Firefox >= 57.
118
- @include _noop-animation ();
119
112
@include backface-visibility (hidden );
120
113
animation : mat- progress- bar- secondary- indeterminate- translate
121
114
$mat-progress-bar-full-animation-duration infinite linear ;
@@ -124,7 +117,6 @@ $mat-progress-bar-piece-animation-duration: 250ms !default;
124
117
}
125
118
.mat-progress-bar-secondary.mat-progress-bar-fill ::after {
126
119
// Avoids stacked animation tearing in Firefox >= 57.
127
- @include _noop-animation ();
128
120
@include backface-visibility (hidden );
129
121
animation : mat- progress- bar- secondary- indeterminate- scale
130
122
$mat-progress-bar-full-animation-duration infinite linear ;
@@ -134,7 +126,6 @@ $mat-progress-bar-piece-animation-duration: 250ms !default;
134
126
& [mode = ' buffer' ] {
135
127
.mat-progress-bar-background {
136
128
// Avoids stacked animation tearing in Firefox >= 57.
137
- @include _noop-animation ();
138
129
@include backface-visibility (hidden );
139
130
animation : mat- progress- bar- background- scroll
140
131
$mat-progress-bar-piece-animation-duration infinite linear ;
@@ -144,6 +135,21 @@ $mat-progress-bar-piece-animation-duration: 250ms !default;
144
135
display : block ;
145
136
}
146
137
}
138
+
139
+ // Disabled animations handling.
140
+ & ._mat-animation-noopable {
141
+ .mat-progress-bar-fill ,
142
+ .mat-progress-bar-fill ::after ,
143
+ .mat-progress-bar-buffer ,
144
+ .mat-progress-bar-primary ,
145
+ .mat-progress-bar-primary.mat-progress-bar-fill ::after ,
146
+ .mat-progress-bar-secondary ,
147
+ .mat-progress-bar-secondary.mat-progress-bar-fill ::after ,
148
+ .mat-progress-bar-background {
149
+ animation : none ;
150
+ transition : none ;
151
+ }
152
+ }
147
153
}
148
154
149
155
0 commit comments