@@ -35,7 +35,6 @@ $mat-progress-bar-piece-animation-duration: 250ms !default;
35
35
// The progress bar buffer is the bar indicator showing the buffer value and is only visible
36
36
// beyond the current value of the primary progress bar.
37
37
.mat-progress-bar-buffer {
38
- @include _noop-animation ();
39
38
transform-origin : top left ;
40
39
transition : transform $mat-progress-bar-piece-animation-duration ease ;
41
40
}
@@ -48,15 +47,13 @@ $mat-progress-bar-piece-animation-duration: 250ms !default;
48
47
49
48
// The progress bar fill fills the progress bar with the indicator color.
50
49
.mat-progress-bar-fill {
51
- @include _noop-animation ();
52
50
animation : none ;
53
51
transform-origin : top left ;
54
52
transition : transform $mat-progress-bar-piece-animation-duration ease ;
55
53
}
56
54
57
55
// A pseudo element is created for each progress bar bar that fills with the indicator color.
58
56
.mat-progress-bar-fill ::after {
59
- @include _noop-animation ();
60
57
animation : none ;
61
58
content : ' ' ;
62
59
display : inline-block ;
@@ -81,27 +78,23 @@ $mat-progress-bar-piece-animation-duration: 250ms !default;
81
78
& [mode = ' indeterminate' ],
82
79
& [mode = ' query' ] {
83
80
.mat-progress-bar-fill {
84
- @include _noop-animation ();
85
81
transition : none ;
86
82
}
87
83
.mat-progress-bar-primary {
88
84
// Avoids stacked animation tearing in Firefox >= 57.
89
- @include _noop-animation ();
90
85
@include backface-visibility (hidden );
91
86
animation : mat- progress- bar- primary- indeterminate- translate
92
87
$mat-progress-bar-full-animation-duration infinite linear ;
93
88
left : -145.166611% ;
94
89
}
95
90
.mat-progress-bar-primary.mat-progress-bar-fill ::after {
96
91
// Avoids stacked animation tearing in Firefox >= 57.
97
- @include _noop-animation ();
98
92
@include backface-visibility (hidden );
99
93
animation : mat- progress- bar- primary- indeterminate- scale
100
94
$mat-progress-bar-full-animation-duration infinite linear ;
101
95
}
102
96
.mat-progress-bar-secondary {
103
97
// Avoids stacked animation tearing in Firefox >= 57.
104
- @include _noop-animation ();
105
98
@include backface-visibility (hidden );
106
99
animation : mat- progress- bar- secondary- indeterminate- translate
107
100
$mat-progress-bar-full-animation-duration infinite linear ;
@@ -110,7 +103,6 @@ $mat-progress-bar-piece-animation-duration: 250ms !default;
110
103
}
111
104
.mat-progress-bar-secondary.mat-progress-bar-fill ::after {
112
105
// Avoids stacked animation tearing in Firefox >= 57.
113
- @include _noop-animation ();
114
106
@include backface-visibility (hidden );
115
107
animation : mat- progress- bar- secondary- indeterminate- scale
116
108
$mat-progress-bar-full-animation-duration infinite linear ;
@@ -120,12 +112,26 @@ $mat-progress-bar-piece-animation-duration: 250ms !default;
120
112
& [mode = ' buffer' ] {
121
113
.mat-progress-bar-background {
122
114
// Avoids stacked animation tearing in Firefox >= 57.
123
- @include _noop-animation ();
124
115
@include backface-visibility (hidden );
125
116
animation : mat- progress- bar- background- scroll
126
117
$mat-progress-bar-piece-animation-duration infinite linear ;
127
118
}
128
119
}
120
+
121
+ // Disabled animations handling.
122
+ & ._mat-animation-noopable {
123
+ .mat-progress-bar-fill ,
124
+ .mat-progress-bar-fill ::after ,
125
+ .mat-progress-bar-buffer ,
126
+ .mat-progress-bar-primary ,
127
+ .mat-progress-bar-primary.mat-progress-bar-fill ::after ,
128
+ .mat-progress-bar-secondary ,
129
+ .mat-progress-bar-secondary.mat-progress-bar-fill ::after ,
130
+ .mat-progress-bar-background {
131
+ animation : none ;
132
+ transition : none ;
133
+ }
134
+ }
129
135
}
130
136
131
137
0 commit comments