Skip to content

Commit ca9b1fc

Browse files
committed
adjust rain
1 parent fd8c611 commit ca9b1fc

1 file changed

Lines changed: 34 additions & 42 deletions

File tree

apps/web/app/globals.css

Lines changed: 34 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,7 @@ header {
6666
}
6767
}
6868

69-
/* ================= IMAGE BASE ================= */
70-
/* A imagem vem do Next/Image (z-0) */
71-
72-
/* ================= SKY BLEND LAYER ================= */
69+
/* ================= SKY BLEND ================= */
7370

7471
.hero-sky {
7572
position: absolute;
@@ -201,18 +198,25 @@ header {
201198
pointer-events: none;
202199
}
203200

204-
/* 🌧️ RAIN (VERTICAL CORRECT) */
201+
/* 🌧️ RAIN — REAL DROPS (NO LINES) */
205202
.hero-rain .hero-effects {
206-
background-image: repeating-linear-gradient(
207-
115deg,
208-
rgba(255, 255, 255, 0.35),
209-
rgba(255, 255, 255, 0.35) 1px,
210-
transparent 1px,
211-
transparent 18px
212-
);
213-
background-size: 2px 22px;
214-
animation: rainFall 0.45s linear infinite;
215-
opacity: 0.75;
203+
background-image:
204+
radial-gradient(
205+
rgba(255,255,255,0.35) 1px,
206+
transparent 1.5px
207+
),
208+
radial-gradient(
209+
rgba(255,255,255,0.25) 1px,
210+
transparent 2px
211+
);
212+
background-size:
213+
12px 22px,
214+
18px 28px;
215+
background-position:
216+
0 -20%,
217+
6px -30%;
218+
animation: rainDrop 0.8s linear infinite;
219+
opacity: 0.85;
216220
}
217221

218222
/* ================= OVERLAY ================= */
@@ -258,20 +262,13 @@ header {
258262
/* ================= ANIMATIONS ================= */
259263

260264
@keyframes skyDrift {
261-
0% {
262-
background-position: 50% 0%;
263-
}
264-
50% {
265-
background-position: 50% 100%;
266-
}
267-
100% {
268-
background-position: 50% 0%;
269-
}
265+
0% { background-position: 50% 0%; }
266+
50% { background-position: 50% 100%; }
267+
100% { background-position: 50% 0%; }
270268
}
271269

272270
@keyframes sunFloat {
273-
0%,
274-
100% {
271+
0%,100% {
275272
transform: translateX(-50%) translateY(0);
276273
}
277274
50% {
@@ -280,20 +277,20 @@ header {
280277
}
281278

282279
@keyframes cloudsDrift {
283-
from {
284-
transform: translateX(-10%);
285-
}
286-
to {
287-
transform: translateX(10%);
288-
}
280+
from { transform: translateX(-10%); }
281+
to { transform: translateX(10%); }
289282
}
290283

291-
@keyframes rainFall {
284+
@keyframes rainDrop {
292285
0% {
293-
background-position: 0 0;
286+
background-position:
287+
0 -20%,
288+
6px -30%;
294289
}
295290
100% {
296-
background-position: 0 120%;
291+
background-position:
292+
0 120%,
293+
6px 130%;
297294
}
298295
}
299296

@@ -322,13 +319,8 @@ header {
322319
height: 36px;
323320
}
324321

325-
.swiper-button-next {
326-
right: -6px;
327-
}
328-
329-
.swiper-button-prev {
330-
left: -6px;
331-
}
322+
.swiper-button-next { right: -6px; }
323+
.swiper-button-prev { left: -6px; }
332324

333325
.swiper-pagination {
334326
bottom: 0 !important;

0 commit comments

Comments
 (0)