forked from Rustcodeweb/Progress-Percentage-Circle-Design
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
65 lines (57 loc) · 1.21 KB
/
style.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
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700');
body{
padding: 0px;
margin: 0px;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
background: #D5F2E3;
}
.circle-container{
width: 150px;
height: 150px;
background: #E1E1E1;
border-radius: 50%;
}
.circle-container .circle .item,
.circle-container .circle .fill{
width: 150px;
height: 150px;
position: absolute;
border-radius: 50%;
}
.circle-container .circle .item{
clip: rect(0px, 150px, 150px, 64px);
}
.circle-container .circle .item .fill{
clip: rect(0px, 64px, 150px, 0px);
background-color: #2892D7;
}
.circle-container .circle .item.layer-1,
.circle-container .circle .fill{
transform: rotate(126deg);
animation: fill ease-in-out 3s;
}
@keyframes fill {
0%{
transform: rotate(0deg);
}
100%{
transform: rotate(126deg);
}
}
.inside-content{
width: 130px;
height: 130px;
border-radius: 50%;
background: #D5F2E3;
text-align: center;
margin-top: 10px;
margin-left: 10px;
position: absolute;
font-weight: 700;
font-family: "Poppins", sans-serif;
font-size: 32px;
line-height: 130px;
}