-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanimations.css
More file actions
461 lines (386 loc) · 9.02 KB
/
Copy pathanimations.css
File metadata and controls
461 lines (386 loc) · 9.02 KB
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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
/* ============================================
东方Project风格 - 特效动画
============================================ */
/* ============================================
樱花粒子效果
============================================ */
@keyframes sakura-fall {
0% {
transform: translateY(0) translateX(0) rotate(0deg);
opacity: 1;
}
100% {
transform: translateY(100vh) translateX(100px) rotate(360deg);
opacity: 0;
}
}
/* 单个樱花粒子 */
.sakura {
position: fixed;
width: 20px;
height: 20px;
pointer-events: none;
animation: sakura-fall linear infinite;
}
/* ============================================
光晕和魔法效果 ============================================ */
@keyframes magic-glow {
0% {
box-shadow: 0 0 10px rgba(115, 209, 96, 0.3),
0 0 20px rgba(200, 255, 158, 0.1);
}
50% {
box-shadow: 0 0 20px rgba(115, 209, 96, 0.6),
0 0 40px rgba(200, 255, 158, 0.2);
}
100% {
box-shadow: 0 0 10px rgba(115, 209, 96, 0.3),
0 0 20px rgba(200, 255, 158, 0.1);
}
}
/* 页面加载动画 */
@keyframes fade-in {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
body {
animation: fade-in 0.6s ease-out;
}
/* ============================================
涟漪效果
============================================ */
@keyframes ripple {
0% {
transform: translate(-50%, -50%) scale(0);
opacity: 1;
}
100% {
transform: translate(-50%, -50%) scale(4);
opacity: 0;
}
}
.ripple {
position: absolute;
border-radius: 50%;
background: radial-gradient(circle, rgba(115, 209, 96, 0.8), transparent);
pointer-events: none;
animation: ripple 0.6s ease-out;
}
/* ============================================
符卡翻转效果
============================================ */
@keyframes card-flip {
0% {
transform: rotateY(0);
box-shadow: 0 0 20px rgba(115, 209, 96, 0.3);
}
50% {
box-shadow: 0 0 40px rgba(115, 209, 96, 0.6);
}
100% {
transform: rotateY(0);
box-shadow: 0 0 20px rgba(115, 209, 96, 0.3);
}
}
/* ============================================
闪烁效果
============================================ */
@keyframes sparkle {
0%, 100% {
opacity: 0.3;
}
50% {
opacity: 1;
}
}
/* ============================================
旋转效果
============================================ */
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.spinning {
animation: spin 4s linear infinite;
}
/* ============================================
漂浮效果
============================================ */
@keyframes floating {
0%, 100% {
transform: translateY(0px);
}
50% {
transform: translateY(-10px);
}
}
.floating {
animation: floating 3s ease-in-out infinite;
}
/* ============================================
渐变流动效果
============================================ */
@keyframes gradient-flow {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
.gradient-flow {
background-size: 200% 200%;
animation: gradient-flow 6s ease infinite;
}
/* ============================================
光点聚散效果
============================================ */
@keyframes light-burst {
0% {
transform: translate(0, 0) scale(1);
opacity: 1;
}
100% {
transform: translate(var(--tx), var(--ty)) scale(0);
opacity: 0;
}
}
.light-burst {
position: fixed;
width: 8px;
height: 8px;
background: radial-gradient(circle, #FFE98A, #9FE870);
border-radius: 50%;
pointer-events: none;
animation: light-burst 0.8s ease-out forwards;
box-shadow: 0 0 10px #FFE98A;
}
/* ============================================
文字发光效果
============================================ */
@keyframes text-glow {
0%, 100% {
text-shadow: 0 0 5px rgba(115, 209, 96, 0.5);
}
50% {
text-shadow: 0 0 15px rgba(115, 209, 96, 0.8),
0 0 25px rgba(200, 255, 158, 0.4);
}
}
.glow-text {
animation: text-glow 2s ease-in-out infinite;
}
@keyframes border-glow {
0% {
border-color: var(--primary-color);
box-shadow: 0 0 10px var(--primary-color);
}
50% {
border-color: var(--accent-color);
box-shadow: 0 0 20px var(--accent-color);
}
100% {
border-color: var(--primary-color);
box-shadow: 0 0 10px var(--primary-color);
}
}
.border-glow {
animation: border-glow 2s ease-in-out infinite;
}
/* ============================================
缩放脉冲效果
============================================ */
@keyframes pulse-scale {
0%, 100% {
transform: scale(1);
}
50% {
transform: scale(1.05);
}
}
.pulse-scale {
animation: pulse-scale 2s ease-in-out infinite;
}
@keyframes scan-line {
from {
top: -100%;
}
to {
top: 100%;
}
}
.scan-effect {
position: absolute;
width: 100%;
height: 10px;
background: linear-gradient(180deg, transparent, rgba(200, 255, 158, 0.1), transparent);
animation: scan-line 4s linear infinite;
pointer-events: none;
}
/* ============================================
粒子碎片效果
============================================ */
@keyframes particle-burst {
0% {
transform: translate(0, 0) scale(1);
opacity: 1;
}
100% {
transform: translate(var(--tx), var(--ty)) scale(0.3);
opacity: 0;
}
}
.particle-burst {
position: fixed;
width: 4px;
height: 4px;
background: var(--primary-color);
border-radius: 50%;
animation: particle-burst 0.6s ease-out forwards;
pointer-events: none;
}
/* ============================================
打字效果
============================================ */
@keyframes typing {
from {
width: 0;
}
to {
width: 100%;
}
}
@keyframes blink {
0%, 49% {
border-right-color: var(--primary-color);
}
50%, 100% {
border-right-color: transparent;
}
}
.typing-text {
overflow: hidden;
border-right: 2px solid var(--primary-color);
white-space: nowrap;
animation: typing 3s steps(30, end), blink 0.75s step-end infinite;
}
@keyframes star-blink {
0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
opacity: 1;
}
20%, 24%, 55% {
opacity: 0.3;
}
}
.star-blink {
animation: star-blink 3s ease-in-out infinite;
}
@keyframes fill {
0% {
width: 0;
}
100% {
width: 100%;
}
}
.progress-fill {
height: 3px;
background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
animation: fill 1s ease-out forwards;
}
/* ============================================
彩虹彩虹渐变
============================================ */
@keyframes rainbow {
0% {
filter: hue-rotate(0deg);
}
100% {
filter: hue-rotate(360deg);
}
}
.rainbow-effect {
animation: rainbow 10s linear infinite;
}
@keyframes countdown-pulse {
0%, 100% {
transform: scale(1);
opacity: 1;
}
50% {
transform: scale(0.9);
opacity: 0.8;
}
}
.countdown {
animation: countdown-pulse 0.3s ease-in-out;
}
/* ============================================
魔法发射光线
============================================ */
@keyframes beam-shoot {
0% {
transform: scaleX(0);
opacity: 1;
}
100% {
transform: scaleX(1);
opacity: 0;
}
}
.magic-beam {
position: fixed;
height: 2px;
background: linear-gradient(90deg, var(--primary-color), var(--accent-color), transparent);
animation: beam-shoot 0.5s ease-out forwards;
pointer-events: none;
}
/* ============================================
符号旋转
============================================ */
@keyframes symbol-rotate {
0% {
transform: rotate(0deg) scale(1);
opacity: 0;
}
50% {
opacity: 1;
}
100% {
transform: rotate(360deg) scale(0);
opacity: 0;
}
}
.symbol-rotate {
position: fixed;
animation: symbol-rotate 1s ease-out forwards;
pointer-events: none;
font-size: 2rem;
}
::-webkit-scrollbar {
width: 10px;
}
::-webkit-scrollbar-track {
background: rgba(26, 0, 51, 0.5);
}
::-webkit-scrollbar-thumb {
background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
background: linear-gradient(180deg, var(--accent-color), var(--primary-color));
box-shadow: 0 0 10px rgba(115, 209, 96, 0.5);
}