Skip to content

Commit fb6146d

Browse files
committed
Update yu.html
1 parent c5e5ed7 commit fb6146d

1 file changed

Lines changed: 77 additions & 31 deletions

File tree

more/content/yu.html

Lines changed: 77 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434

3535
.happy-valentines {
3636
position: relative;
37-
width: 400px;
38-
height: 500px;
37+
width: 550px;
38+
height: 600px;
3939
display: flex;
4040
flex-direction: column;
4141
align-items: center;
@@ -44,8 +44,8 @@
4444

4545
.flip-card {
4646
background-color: transparent;
47-
width: 400px;
48-
height: 300px;
47+
width: 550px;
48+
height: 400px;
4949
perspective: 1000px; /* 3D 翻转效果 */
5050
cursor: pointer; /* 提示可点击 */
5151
}
@@ -79,17 +79,50 @@
7979
}
8080

8181
.flip-card-back {
82-
background-color: #ff8fa3;
82+
background: linear-gradient(135deg, #ff8fa3 0%, #ffb3c1 50%, #ff8fa3 100%);
8383
color: #800f2f;
8484
transform: rotateY(180deg);
8585
display: flex;
8686
align-items: center;
8787
justify-content: center;
88-
padding: 20px;
88+
padding: 30px;
8989
font-family: 'Pacifico', cursive;
90-
font-size: 25px;
91-
line-height: 1.2;
90+
font-size: 28px;
91+
line-height: 1.5;
9292
text-align: center;
93+
position: relative;
94+
overflow: visible;
95+
}
96+
97+
.flip-card-back::before {
98+
content: '💕';
99+
position: absolute;
100+
top: 20px;
101+
left: 30px;
102+
font-size: 40px;
103+
opacity: 0.6;
104+
animation: heartPulse 2s ease-in-out infinite;
105+
}
106+
107+
.flip-card-back::after {
108+
content: '💕';
109+
position: absolute;
110+
bottom: 20px;
111+
right: 30px;
112+
font-size: 40px;
113+
opacity: 0.6;
114+
animation: heartPulse 2s ease-in-out infinite 1s;
115+
}
116+
117+
@keyframes heartPulse {
118+
0%, 100% {
119+
transform: scale(1);
120+
opacity: 0.6;
121+
}
122+
50% {
123+
transform: scale(1.2);
124+
opacity: 0.9;
125+
}
93126
}
94127

95128
.valentines-day-card:before {
@@ -99,9 +132,9 @@
99132
width:100px;
100133
height:100px;
101134
border-radius:50%;
102-
top:140px;
135+
top:180px;
103136
left:-25px;
104-
box-shadow:60px 20px #ffb3c1,130px 10px #ffb3c1,190px 20px #ffb3c1,260px -5px #ffb3c1, 340px 20px #ffb3c1;
137+
box-shadow:80px 25px #ffb3c1,180px 15px #ffb3c1,270px 25px #ffb3c1,360px 0px #ffb3c1, 470px 25px #ffb3c1;
105138
}
106139

107140
.valentines-day-card:after {
@@ -111,9 +144,9 @@
111144
width:100px;
112145
height:100px;
113146
border-radius:50%;
114-
top:160px;
147+
top:200px;
115148
left:-40px;
116-
box-shadow: 50px 20px #ffccd5,120px 40px #ffccd5, 200px 15px #ffccd5,260px 30px #ffccd5, 330px 30px #ffccd5,380px 10px #ffccd5;
149+
box-shadow: 70px 25px #ffccd5,165px 50px #ffccd5, 280px 20px #ffccd5,360px 40px #ffccd5, 460px 40px #ffccd5,530px 15px #ffccd5;
117150
}
118151

119152
.clouds {
@@ -123,9 +156,9 @@
123156
border-radius:50%;
124157
background-color: #fff0f3;
125158
z-index:5;
126-
top:210px;
159+
top:280px;
127160
left:-20px;
128-
box-shadow: 55px 30px #fff0f3, 125px 10px #fff0f3,175px 20px #fff0f3, 250px 10px #fff0f3, 320px 5px #fff0f3, 380px 10px #fff0f3;
161+
box-shadow: 75px 40px #fff0f3, 170px 15px #fff0f3,240px 30px #fff0f3, 350px 15px #fff0f3, 450px 10px #fff0f3, 530px 15px #fff0f3;
129162
}
130163

131164
.hearts {
@@ -135,36 +168,36 @@
135168

136169
.heartOne {
137170
position: absolute;
138-
left:100px;
139-
top:250px;
171+
left:140px;
172+
top:320px;
140173
animation: up 4s linear forwards 1s;
141174
}
142175

143176
.heartTwo {
144177
position: absolute;
145-
left:270px;
146-
top:230px;
178+
left:370px;
179+
top:300px;
147180
animation: up 5s linear forwards 1.8s;
148181
}
149182

150183
.heartThree {
151184
position: absolute;
152-
left:85px;
153-
top:415px;
185+
left:115px;
186+
top:520px;
154187
animation: up 5s linear forwards 3s;
155188
}
156189

157190
.heartFour {
158191
position: absolute;
159-
left:320px;
160-
top:380px;
192+
left:440px;
193+
top:480px;
161194
animation: upTwo 9s linear infinite 3.5s;
162195
}
163196

164197
.heartFive {
165198
position: absolute;
166-
left:150px;
167-
top:400px;
199+
left:200px;
200+
top:500px;
168201
animation: upTwo 13s linear infinite 4.5s;
169202
}
170203

@@ -234,15 +267,28 @@
234267
.text {
235268
position: absolute;
236269
color: #800f2f;
237-
font-size:30px;
270+
font-size:34px;
238271
font-family: 'Pacifico', cursive;
239-
line-height:1;
272+
line-height:1.3;
240273
text-align: center;
241-
width:380px;
242-
left:10px;
243-
z-index:3;
244-
top:320px;
245-
animation: up 1s ease forwards;
274+
width:520px;
275+
left:15px;
276+
z-index:100;
277+
top:30px;
278+
animation: fadeIn 1.5s ease forwards;
279+
text-shadow: 2px 2px 6px rgba(255, 255, 255, 0.9), 0 0 10px rgba(255, 255, 255, 0.5);
280+
font-weight: bold;
281+
}
282+
283+
@keyframes fadeIn {
284+
from {
285+
opacity: 0;
286+
transform: translateY(-20px);
287+
}
288+
to {
289+
opacity: 1;
290+
transform: translateY(0);
291+
}
246292
}
247293

248294
/* 保留原来的飘落心形样式 */

0 commit comments

Comments
 (0)