1 Commits

Author SHA1 Message Date
tistopandita b856dce066 feat: add animation 2026-06-05 13:09:29 +07:00
3 changed files with 2534 additions and 3946 deletions
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+51 -34
View File
@@ -300,12 +300,10 @@ body {
position: absolute; position: absolute;
inset: 0; inset: 0;
z-index: 1; z-index: 1;
background: linear-gradient( background: linear-gradient(270deg,
270deg,
rgba(0, 0, 0, 0) 21.76%, rgba(0, 0, 0, 0) 21.76%,
rgba(0, 0, 0, 0.4) 63.31%, rgba(0, 0, 0, 0.4) 63.31%,
rgba(0, 49, 80, 0.72) 78.24% rgba(0, 49, 80, 0.72) 78.24%);
);
} }
/* Judul Hero */ /* Judul Hero */
@@ -984,12 +982,10 @@ body {
.pontianak-overlay { .pontianak-overlay {
position: absolute; position: absolute;
inset: 0; inset: 0;
background: linear-gradient( background: linear-gradient(0deg,
0deg,
rgba(0, 0, 0, 0.9) -14.48%, rgba(0, 0, 0, 0.9) -14.48%,
rgba(0, 0, 0, 0.4) 42.76%, rgba(0, 0, 0, 0.4) 42.76%,
rgba(0, 0, 0, 0) 100% rgba(0, 0, 0, 0) 100%);
);
z-index: 1; z-index: 1;
} }
@@ -1132,12 +1128,10 @@ body {
.card-overlay { .card-overlay {
position: absolute; position: absolute;
inset: 0; inset: 0;
background: linear-gradient( background: linear-gradient(0deg,
0deg,
rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.8) 0%,
rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.2) 50%,
rgba(0, 0, 0, 0) 100% rgba(0, 0, 0, 0) 100%);
);
z-index: 1; z-index: 1;
} }
@@ -1406,12 +1400,10 @@ body {
.cost-banner-overlay { .cost-banner-overlay {
position: absolute; position: absolute;
inset: 0; inset: 0;
background: linear-gradient( background: linear-gradient(0deg,
0deg,
#012338 0%, #012338 0%,
rgba(1, 35, 56, 0.4) 55%, rgba(1, 35, 56, 0.4) 55%,
rgba(1, 35, 56, 0) 100% rgba(1, 35, 56, 0) 100%);
);
} }
} }
@@ -1534,12 +1526,10 @@ body {
/* Perubahan Arah Gradasi: Mengabur ke arah kiri panel Navy */ /* Perubahan Arah Gradasi: Mengabur ke arah kiri panel Navy */
.cost-banner-overlay { .cost-banner-overlay {
background: linear-gradient( background: linear-gradient(270deg,
270deg,
#012338 0%, #012338 0%,
rgba(0, 0, 0, 0.4) 65%, rgba(0, 0, 0, 0.4) 65%,
rgba(0, 0, 0, 0) 78% rgba(0, 0, 0, 0) 78%);
);
} }
} }
@@ -1605,20 +1595,6 @@ body {
} }
} }
/* Animations */
.reveal {
opacity: 0;
transform: translateY(50px);
transition:
opacity 0.8s ease,
transform 0.8s ease;
}
.reveal.active {
opacity: 1;
transform: translateY(0);
}
/* ============================================================ /* ============================================================
ANTI-FLICKER — localization.js sets window.__currentLang ANTI-FLICKER — localization.js sets window.__currentLang
synchronously; body stays hidden until DOMContentLoaded synchronously; body stays hidden until DOMContentLoaded
@@ -1672,6 +1648,7 @@ body.lang-pending {
} }
@media (prefers-reduced-motion: reduce) { @media (prefers-reduced-motion: reduce) {
*, *,
*::before, *::before,
*::after { *::after {
@@ -1846,6 +1823,7 @@ body.lang-pending {
} }
@keyframes lucoPulse { @keyframes lucoPulse {
0%, 0%,
100% { 100% {
transform: scale(1); transform: scale(1);
@@ -1892,6 +1870,7 @@ body.lang-pending {
} }
@keyframes bounce { @keyframes bounce {
0%, 0%,
80%, 80%,
100% { 100% {
@@ -1915,3 +1894,41 @@ body.lang-pending {
border-right: 1px solid #e2e8f0; border-right: 1px solid #e2e8f0;
border-bottom: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0;
} }
/* ===== PAGE LOAD ANIMATIONS ===== */
@keyframes fadeInUplarge {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
/* Hero */
.reveal {
opacity: 0;
transform: translateY(50px);
transition:
opacity 0.8s ease,
transform 0.8s ease;
}
.reveal.active {
opacity: 1;
transform: translateY(0);
}