/
index.css
160 lines (145 loc) · 2.5 KB
/
index.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
html,
body {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Courier New", Courier, monospace;
overflow: hidden;
}
*,
* *::before,
* *::after {
box-sizing: border-box;
}
.box-wrapper {
width: 100vw;
height: 100vh;
flex: 1;
display: flex;
justify-content: center;
align-items: center;
}
.box {
width: 200px;
height: 200px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 10px;
position: relative;
}
.box-rotate {
position: absolute;
width: 20%;
height: 20%;
border-radius: 50%;
border: 4px dashed rgb(0, 0, 0);
animation: rotation 20s infinite linear;
}
.box-rotate2 {
position: absolute;
width: 150%;
height: 50%;
border-radius: 50%;
border: 4px dashed rgb(163, 6, 116);
transform: rotate(60deg);
animation: rotation2 50s infinite linear;
}
.box-rotate3 {
position: absolute;
width: 150%;
height: 50%;
border-radius: 50%;
border: 4px dashed rgb(199, 53, 136);
transform: rotate(180deg);
animation: rotation3 50s infinite linear;
}
.box-rotate4 {
position: absolute;
width: 150%;
height: 50%;
border-radius: 50%;
border: 4px dashed rgb(154, 60, 113);
transform: rotate(120deg);
animation: rotation4 50s infinite linear;
}
.box-rotate5 {
position: absolute;
width: 150%;
height: 50%;
border-radius: 50%;
border: 4px dashed rgb(154, 60, 113);
transform: rotate(150deg);
animation: rotation5 50s infinite linear;
}
@-webkit-keyframes rotation {
from {
transform: rotate(0deg);
}
to {
transform: rotate(359deg);
}
}
@-webkit-keyframes rotation2 {
from {
transform: rotate(90deg);
}
to {
transform: rotate(450deg);
}
}
@-webkit-keyframes rotation3 {
from {
transform: rotate(45deg);
}
to {
transform: rotate(405deg);
}
}
@-webkit-keyframes rotation4 {
from {
transform: rotate(135deg);
}
to {
transform: rotate(495deg);
}
}
@-webkit-keyframes rotation5 {
from {
transform: rotate(180deg);
}
to {
transform: rotate(540deg);
}
}
.box-connection {
position: absolute;
left: 50%;
top: 50%;
width: 100vw;
height: 5px;
border-radius: 5px;
border: 2px dashed green;
transform-origin: left;
transition: all;
}
#reset {
position: fixed;
bottom: 20px;
left: 10px;
}
.child .box-rotate2,
.child .box-rotate3,
.child .box-rotate4,
.child .box-rotate5 {
width: 100%;
height: 25%;
border-color: green !important;
}
.child .box-rotate {
width: 10%;
height: 10%;
}
[id^="bc-"] {
border-color: red;
}