@@ -12,7 +12,6 @@ $md-progress-circle-sporadic-rotate-duration : $md-progress-circle-duration !def
12
12
$md-progress-circle-stroke-width : 10px !default ;
13
13
$md-progress-circle-radius : 40px !default ;
14
14
$md-progress-circle-circumference : $pi * $md-progress-circle-radius * 2 !default ;
15
- $md-progress-circle-center-point : 50px !default ;
16
15
// Height and weight of the viewport for md-progress-circle.
17
16
$md-progress-circle-viewport-size : 100px !default ;
18
17
@@ -40,20 +39,17 @@ $md-progress-circle-viewport-size : 100px !default;
40
39
svg {
41
40
height : 100% ;
42
41
width : 100% ;
42
+ transform : rotate (-90deg );
43
+ transform-origin : center ;
43
44
}
44
45
45
46
46
47
circle {
47
- cx : $md-progress-circle-center-point ;
48
- cy : $md-progress-circle-center-point ;
49
48
fill : transparent ;
50
- r : $md-progress-circle-radius ;
51
49
stroke : md-color ($md-primary , 600 );
52
50
/* * Stroke width of 10px defines stroke as 10% of the viewBox */
53
51
stroke-width : $md-progress-circle-stroke-width ;
54
52
/* * SVG circle rotations begin rotated 90deg clockwise from the circle's center top */
55
- transform : rotate (-90deg );
56
- transform-origin : center ;
57
53
transition : stroke-dashoffset 0.225s linear ;
58
54
/* * The dash array of the circle is defined as the circumference of the circle. */
59
55
stroke-dasharray : $md-progress-circle-circumference ;
@@ -73,18 +69,25 @@ $md-progress-circle-viewport-size : 100px !default;
73
69
}
74
70
75
71
76
- & [mode = " indeterminate" ] circle {
72
+
73
+
74
+ & [mode = " indeterminate" ] {
77
75
animation-duration : $md-progress-circle-sporadic-rotate-duration ,
78
- $md-progress-circle-constant-rotate-duration ,
79
- $md-progress-circle-value-change-duration ;
76
+ $md-progress-circle-constant-rotate-duration ;
80
77
animation-name : md- progress- circle- sporadic- rotate,
81
- md- progress- circle- linear- rotate,
82
- md- progress- circle- value- change;
78
+ md- progress- circle- linear- rotate;
83
79
animation-timing-function : $ease-in-out-curve-function ,
84
- linear ,
85
- $ease-in-out-curve-function ;
80
+ linear ;
86
81
animation-iteration-count : infinite ;
87
82
transition : none ;
83
+
84
+ circle {
85
+ animation-duration : $md-progress-circle-value-change-duration ;
86
+ animation-name : md- progress- circle- value- change;
87
+ animation-timing-function : $ease-in-out-curve-function ;
88
+ animation-iteration-count : infinite ;
89
+ transition : none ;
90
+ }
88
91
}
89
92
}
90
93
0 commit comments