fix(theme): give footer its own view-transition group

Without a named group the footer folds into the root snapshot, so every
section-body transition paints the section cards over it until the
transition ends.
This commit is contained in:
Ilia Mashkov
2026-07-14 15:59:32 +03:00
parent 21c771cf24
commit d95840e127
+12 -6
View File
@@ -514,14 +514,20 @@
}
}
/* Page-load entry animation for the footer. Previously also carried
* `view-transition-name: site-footer` to layer above section-body's slide
* group, but the section-body group now has `animation: none` (purely
* horizontal slide of OLD/NEW snapshots), so the footer can live in the root
* snapshot during transitions — which also lets the lightbox dialog group
* stack cleanly above it. */
/* Page-load entry animation for the footer. */
.footer-vt {
animation: footer-enter var(--duration-slow) var(--ease-spring) both;
/* Own view-transition group so the footer is snapshotted separately instead
* of folding into the root group. Without it, every `section-body` transition
* paints the section (a named group) above the root — and thus above the
* footer — until the transition ends, flashing the cards over the footer. */
view-transition-name: site-footer;
}
/* Keep the footer group above section-body during transitions, below the
* lightbox groups (z=20/30) so the lightbox still opens over it. */
::view-transition-group(site-footer) {
z-index: 10;
}
@keyframes footer-enter {