Skip to content

Commit 456d356

Browse files
committed
Update yu.html
1 parent 0421d4e commit 456d356

1 file changed

Lines changed: 31 additions & 77 deletions

File tree

more/content/yu.html

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

3535
.happy-valentines {
3636
position: relative;
37-
width: 550px;
38-
height: 600px;
37+
width: 400px;
38+
height: 500px;
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: 550px;
48-
height: 400px;
47+
width: 400px;
48+
height: 300px;
4949
perspective: 1000px; /* 3D 翻转效果 */
5050
cursor: pointer; /* 提示可点击 */
5151
}
@@ -79,50 +79,17 @@
7979
}
8080

8181
.flip-card-back {
82-
background: linear-gradient(135deg, #ff8fa3 0%, #ffb3c1 50%, #ff8fa3 100%);
82+
background-color: #ff8fa3;
8383
color: #800f2f;
8484
transform: rotateY(180deg);
8585
display: flex;
8686
align-items: center;
8787
justify-content: center;
88-
padding: 30px;
88+
padding: 20px;
8989
font-family: 'Pacifico', cursive;
90-
font-size: 28px;
91-
line-height: 1.5;
90+
font-size: 25px;
91+
line-height: 1.2;
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-
}
12693
}
12794

12895
.valentines-day-card:before {
@@ -132,9 +99,9 @@
13299
width:100px;
133100
height:100px;
134101
border-radius:50%;
135-
top:180px;
102+
top:140px;
136103
left:-25px;
137-
box-shadow:80px 25px #ffb3c1,180px 15px #ffb3c1,270px 25px #ffb3c1,360px 0px #ffb3c1, 470px 25px #ffb3c1;
104+
box-shadow:60px 20px #ffb3c1,130px 10px #ffb3c1,190px 20px #ffb3c1,260px -5px #ffb3c1, 340px 20px #ffb3c1;
138105
}
139106

140107
.valentines-day-card:after {
@@ -144,9 +111,9 @@
144111
width:100px;
145112
height:100px;
146113
border-radius:50%;
147-
top:200px;
114+
top:160px;
148115
left:-40px;
149-
box-shadow: 70px 25px #ffccd5,165px 50px #ffccd5, 280px 20px #ffccd5,360px 40px #ffccd5, 460px 40px #ffccd5,530px 15px #ffccd5;
116+
box-shadow: 50px 20px #ffccd5,120px 40px #ffccd5, 200px 15px #ffccd5,260px 30px #ffccd5, 330px 30px #ffccd5,380px 10px #ffccd5;
150117
}
151118

152119
.clouds {
@@ -156,9 +123,9 @@
156123
border-radius:50%;
157124
background-color: #fff0f3;
158125
z-index:5;
159-
top:280px;
126+
top:210px;
160127
left:-20px;
161-
box-shadow: 75px 40px #fff0f3, 170px 15px #fff0f3,240px 30px #fff0f3, 350px 15px #fff0f3, 450px 10px #fff0f3, 530px 15px #fff0f3;
128+
box-shadow: 55px 30px #fff0f3, 125px 10px #fff0f3,175px 20px #fff0f3, 250px 10px #fff0f3, 320px 5px #fff0f3, 380px 10px #fff0f3;
162129
}
163130

164131
.hearts {
@@ -168,36 +135,36 @@
168135

169136
.heartOne {
170137
position: absolute;
171-
left:140px;
172-
top:320px;
138+
left:100px;
139+
top:250px;
173140
animation: up 4s linear forwards 1s;
174141
}
175142

176143
.heartTwo {
177144
position: absolute;
178-
left:370px;
179-
top:300px;
145+
left:270px;
146+
top:230px;
180147
animation: up 5s linear forwards 1.8s;
181148
}
182149

183150
.heartThree {
184151
position: absolute;
185-
left:115px;
186-
top:520px;
152+
left:85px;
153+
top:415px;
187154
animation: up 5s linear forwards 3s;
188155
}
189156

190157
.heartFour {
191158
position: absolute;
192-
left:440px;
193-
top:480px;
159+
left:320px;
160+
top:380px;
194161
animation: upTwo 9s linear infinite 3.5s;
195162
}
196163

197164
.heartFive {
198165
position: absolute;
199-
left:200px;
200-
top:500px;
166+
left:150px;
167+
top:400px;
201168
animation: upTwo 13s linear infinite 4.5s;
202169
}
203170

@@ -267,28 +234,15 @@
267234
.text {
268235
position: absolute;
269236
color: #800f2f;
270-
font-size:32px;
237+
font-size:30px;
271238
font-family: 'Pacifico', cursive;
272-
line-height:1.3;
239+
line-height:1;
273240
text-align: center;
274-
width:520px;
275-
left:15px;
276-
z-index:100;
277-
top:120px;
278-
animation: fadeIn 1.5s ease forwards;
279-
text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
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-
}
241+
width:380px;
242+
left:10px;
243+
z-index:3;
244+
top:320px;
245+
animation: up 1s ease forwards;
292246
}
293247

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

0 commit comments

Comments
 (0)