feat: page transitions, scroll progress bar, and staggered value cards
This commit is contained in:
@@ -255,3 +255,33 @@
|
||||
transition-duration: 0.01ms !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* ─── PAGE TRANSITIONS ────────────────────────── */
|
||||
|
||||
body {
|
||||
opacity: 0;
|
||||
transition: opacity 400ms cubic-bezier(0.22, 1, 0.36, 1);
|
||||
}
|
||||
|
||||
body.page-ready {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/* ─── SCROLL PROGRESS ────────────────────────── */
|
||||
|
||||
.scroll-progress {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 2px;
|
||||
width: 0%;
|
||||
background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-container) 100%);
|
||||
z-index: 9999;
|
||||
transition: width 100ms linear;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.scroll-progress {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user