-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
108 lines (93 loc) · 1.89 KB
/
styles.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
:root {
--primary-color: #3498db;
--background-color: #0c0026ec;
--button-color: #e74c3c;
--button-hover-color: #c0392b;
--text-color: #fff;
--animation-duration: 1.8s;
--fade-duration: 1.8s;
/* 增加动画持续时间 */
}
#loadButton {
padding: 15px 30px;
font-size: 18px;
cursor: pointer;
background-color: var(--button-color);
color: white;
border: none;
border-radius: 5px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
transition: background-color 0.3s, transform 0.3s;
}
#loadButton:hover {
background-color: var(--button-hover-color);
transform: scale(1.05);
}
#overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: var(--background-color);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
visibility: hidden;
opacity: 0;
z-index: 1000;
/* 确保覆盖页面内容 */
transition: visibility 0s, opacity 0.5s;
}
#overlay.visible {
visibility: visible;
opacity: 1;
}
.loader {
display: flex;
justify-content: center;
align-items: center;
width: 100px;
height: 100px;
}
.loader div {
width: 20px;
height: 20px;
background-color: var(--primary-color);
margin: 3px;
border-radius: 50%;
animation: bounce var(--animation-duration) infinite ease-in-out both;
}
.loader div:nth-child(1) {
animation-delay: -0.32s;
}
.loader div:nth-child(2) {
animation-delay: -0.16s;
}
@keyframes bounce {
0%,
80%,
100% {
transform: scale(0);
}
40% {
transform: scale(1);
}
}
#overlay p {
margin-top: 20px;
font-size: 24px;
color: var(--text-color);
animation: fadeIn var(--fade-duration) ease-in-out infinite;
}
@keyframes fadeIn {
0%,
100% {
opacity: 0;
}
25%,
75% {
opacity: 1;
}
}