-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.css
105 lines (94 loc) · 1.99 KB
/
main.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
* {
margin: 0;
padding: 0;
}
body {
background-color: #1c1c1c;
height: 100vh;
display: grid;
place-items: center;
--circleDiameter: 211px;
--icon: 32px;
--circlesBigger: 56px;
}
.container {
user-select: none;
position: relative;
transition: 1s all linear;
}
.circle {
position: relative;
background: transparent;
border-radius: 100%;
border: 1px #f47a08 solid;
width: var(--circleDiameter);
height: var(--circleDiameter);
animation: orbit 15s linear infinite;
}
.container:hover .circle {
-webkit-animation-play-state: paused;
-moz-animation-play-state: paused;
-o-animation-play-state: paused;
animation-play-state: paused;
}
@keyframes orbit {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@-webkit-keyframes orbit {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.mainImg {
position: absolute;
top: 47%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 5;
width: calc(100% - 20px);
}
.icon {
position: absolute;
height: var(--icon);
width: var(--icon);
}
.circle > .icon {
right: -12px;
top: calc(var(--circleDiameter) / 2);
}
.circle .circle {
position: absolute;
--biggerSize: calc(var(--circlesBigger) * var(--data-number));
--subCircleDiameter: calc(var(--circleDiameter) + var(--biggerSize));
width: var(--subCircleDiameter);
height: var(--subCircleDiameter);
right: calc(var(--biggerSize) / 2 * -1);
top: calc(var(--biggerSize) / 2 * -1);
}
.circle:nth-of-type(2) > .icon:nth-of-type(1) {
left: -4px;
top: calc(var(--subCircleDiameter) / 3.5);
}
.circle:nth-of-type(2) > .icon:nth-of-type(2) {
right: -2px;
top: calc(var(--subCircleDiameter) / 1.45);
}
.circle:nth-of-type(3) > .icon:nth-of-type(1) {
left: calc(var(--subCircleDiameter) / 4);
top: calc(var(--subCircleDiameter) - 30px);
}
.circle:nth-of-type(3) > .icon:nth-of-type(2) {
right: calc(var(--subCircleDiameter) / 4);
top: 0;
}
.circle:last-of-type {
border-width: 2px;
}