-
-
Notifications
You must be signed in to change notification settings - Fork 83
/
Copy pathprogress-circular.css
121 lines (113 loc) · 3.48 KB
/
progress-circular.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
.matter-progress-circular {
--matter-helper-theme: var(--matter-theme-rgb, var(--matter-primary-rgb, 33, 150, 243));
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
box-sizing: border-box;
border: none;
border-radius: 50%;
padding: 0.25em;
width: 3em;
height: 3em;
color: rgb(var(--matter-helper-theme));
background-color: transparent;
font-size: 16px;
overflow: hidden;
}
.matter-progress-circular::-webkit-progress-bar {
background-color: transparent;
}
/* Indeterminate */
.matter-progress-circular:indeterminate {
animation: matter-progress-circular 6s infinite cubic-bezier(0.3, 0.6, 1, 1);
}
:-ms-lang(x), .matter-progress-circular:indeterminate {
animation: none;
}
.matter-progress-circular:indeterminate::before,
.matter-progress-circular:indeterminate::-webkit-progress-value {
content: "";
display: block;
box-sizing: border-box;
margin-bottom: 0.25em;
border: solid 0.25em currentColor;
border-radius: 50%;
width: 100% !important;
height: 100%;
background-color: transparent;
-webkit-clip-path: polygon(50% 50%, 37% 0, 50% 0, 50% 0, 50% 0, 50% 0);
clip-path: polygon(50% 50%, 37% 0, 50% 0, 50% 0, 50% 0, 50% 0);
animation: matter-progress-circular-pseudo 0.75s infinite linear alternate;
animation-play-state: inherit;
animation-delay: inherit;
}
.matter-progress-circular:indeterminate::-moz-progress-bar {
box-sizing: border-box;
border: solid 0.25em currentColor;
border-radius: 50%;
width: 100%;
height: 100%;
background-color: transparent;
clip-path: polygon(50% 50%, 37% 0, 50% 0, 50% 0, 50% 0, 50% 0);
animation: matter-progress-circular-pseudo 0.75s infinite linear alternate;
animation-play-state: inherit;
animation-delay: inherit;
}
.matter-progress-circular:indeterminate::-ms-fill {
animation-name: -ms-ring;
}
@keyframes matter-progress-circular {
0% {
transform: rotate(0deg);
}
12.5% {
transform: rotate(180deg);
animation-timing-function: linear;
}
25% {
transform: rotate(630deg);
}
37.5% {
transform: rotate(810deg);
animation-timing-function: linear;
}
50% {
transform: rotate(1260deg);
}
62.5% {
transform: rotate(1440deg);
animation-timing-function: linear;
}
75% {
transform: rotate(1890deg);
}
87.5% {
transform: rotate(2070deg);
animation-timing-function: linear;
}
100% {
transform: rotate(2520deg);
}
}
@keyframes matter-progress-circular-pseudo {
0% {
-webkit-clip-path: polygon(50% 50%, 37% 0, 50% 0, 50% 0, 50% 0, 50% 0);
clip-path: polygon(50% 50%, 37% 0, 50% 0, 50% 0, 50% 0, 50% 0);
}
18% {
-webkit-clip-path: polygon(50% 50%, 37% 0, 100% 0, 100% 0, 100% 0, 100% 0);
clip-path: polygon(50% 50%, 37% 0, 100% 0, 100% 0, 100% 0, 100% 0);
}
53% {
-webkit-clip-path: polygon(50% 50%, 37% 0, 100% 0, 100% 100%, 100% 100%, 100% 100%);
clip-path: polygon(50% 50%, 37% 0, 100% 0, 100% 100%, 100% 100%, 100% 100%);
}
88% {
-webkit-clip-path: polygon(50% 50%, 37% 0, 100% 0, 100% 100%, 0 100%, 0 100%);
clip-path: polygon(50% 50%, 37% 0, 100% 0, 100% 100%, 0 100%, 0 100%);
}
100% {
-webkit-clip-path: polygon(50% 50%, 37% 0, 100% 0, 100% 100%, 0 100%, 0 63%);
clip-path: polygon(50% 50%, 37% 0, 100% 0, 100% 100%, 0 100%, 0 63%);
}
}