-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdcFAN.css
211 lines (194 loc) · 4.12 KB
/
dcFAN.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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
:root {
--bg: #000;
--primary: #70233b;
--control: #d5d8dd;
--control1: #d3d3d3;
}
#app {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
.head {
position: relative;
display: flex;
justify-content: center;
align-items: center;
width: 250px;
height: 250px;
border-radius: 50%;
border: 10px solid var(--primary);
background-image: repeating-conic-gradient(
var(--bg) 0deg 6deg,
transparent 6deg 18deg
);
}
.head .front {
position: absolute;
left: 0;
top: 0;
bottom: 0;
right: 0;
width: 96%;
height: 96%;
margin: auto;
background: -webkit-linear-gradient(top, transparent 20px, var(--bg) 21px),
-webkit-linear-gradient(left, transparent 40px, var(--bg) 41px);
background-size: 43px 23px;
border-radius: 50%;
border: 3px solid var(--bg);
z-index: 999;
}
.head::after {
position: absolute;
display: block;
content: "";
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: #bec4d8;
width: 50px;
height: 50px;
border-radius: 50%;
z-index: 999;
}
.fan-item {
position: absolute;
top: 39px;
left: 100px;
width: 50px;
height: 80px;
border-radius: 20px;
background-color: var(--bg);
}
.fan-item-2 {
top: 67px;
left: 57px;
transform: rotateZ(113deg);
}
.fan-item-3 {
top: 67px;
left: 143px;
transform: rotateZ(-113deg);
}
.fan-item-4 {
top: 132px;
transform: rotateZ(-180deg);
}
.fan-item-5 {
top: 113px;
left: 60px;
transform: rotateZ(54deg);
}
.fan-item-6 {
top: 113px;
left: 143px;
transform: rotateZ(-54deg);
}
.control {
position: relative;
width: 100px;
height: 0px;
border-top: 0px;
border-right: 25px solid transparent;
border-bottom: 90px solid var(--primary);
border-left: 25px solid transparent;
margin-top: -10px;
}
.control-bg {
position: absolute;
top: 10px;
left: -6px;
width: 80px;
height: 0px;
border-top: 0px;
border-right: 17px solid transparent;
border-bottom: 68px solid var(--bg);
border-left: 17px solid transparent;
}
.control-main {
position: absolute;
top: 30px;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
}
.control-item {
position: relative;
left: 5px;
width: 30px;
height: 30px;
border-radius: 50%;
background-color: var(--control);
}
.control-item-1 {
transform: rotateZ(45deg);
}
.control-item-2 {
transform: rotateZ(90deg);
}
.control-item-3 {
transform: rotateZ(135deg);
}
.control-item::after {
display: block;
content: "";
position: absolute;
top: 0;
left: 11px;
border: 1px solid #333;
width: 5px;
height: 28px;
border-radius: 10px;
}
.control-item:first-child {
margin-right: 10px;
}
.footer {
position: relative;
width: 180px;
height: 0px;
border-top: 0px;
border-right: 10px solid transparent;
border-bottom: 20px solid var(--primary);
border-left: 10px solid transparent;
/* transform: rotateX(57deg); */
margin-top: -5px;
}
.fan-main {
position: relative;
width: 100%;
height: 100%;
}
@keyframes rotate {
from {
transform: rotateZ(0deg);
}
to {
transform: rotateZ(360deg);
}
}
.fan-main-1 {
animation: 1s rotate infinite linear;
}
.fan-main-2 {
animation: 500ms rotate infinite linear;
}
.fan-main-3 {
animation: 200ms rotate infinite linear;
}
.front-1 {
animation: 3s rotate infinite linear;
}
.front-2 {
animation: 2s rotate infinite linear;
}
.front-3 {
animation: 1s rotate infinite linear;
}