added reveal animation to all pages.
This commit is contained in:
@@ -4118,3 +4118,42 @@ or: var(--c-teal);
|
||||
.acc__q[aria-expanded="false"] + .acc__a p {
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
/* =========================================================
|
||||
Scroll reveal
|
||||
each top-level section fades and rises into place the first
|
||||
time it crosses into view; its cards cascade in right after
|
||||
========================================================= */
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
.reveal {
|
||||
opacity: 0;
|
||||
transform: translateY(2.5rem);
|
||||
transition:
|
||||
opacity 0.7s var(--ease),
|
||||
transform 0.7s var(--ease);
|
||||
}
|
||||
|
||||
.reveal.is-visible {
|
||||
opacity: 1;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
.reveal-item {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.reveal-item.is-visible {
|
||||
animation: card-rise 0.6s var(--ease) both;
|
||||
}
|
||||
|
||||
@keyframes card-rise {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(1.5rem);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user