mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-10-27 12:56:23 -04:00
fix: remove wildcard view transition animations causing double fade-in
The ::view-transition-old(*) and ::view-transition-new(*) rules were applying fade animations to the root snapshot (header/footer/chrome) in addition to the main-content transition, causing a double fade effect and blocking interactivity during navigation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 file changed
+4
-11
+4
-11
@@ -210,17 +210,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
::view-transition-group(*) {
|
/* Disable the default cross-fade on root (header/footer/chrome stay static) */
|
||||||
animation-duration: 250ms;
|
::view-transition-old(root),
|
||||||
animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
::view-transition-new(root) {
|
||||||
}
|
animation: none;
|
||||||
::view-transition-old(*) {
|
|
||||||
--tw-exit-opacity: 0;
|
|
||||||
animation: 150ms ease-in both exit;
|
|
||||||
}
|
|
||||||
::view-transition-new(*) {
|
|
||||||
--tw-enter-opacity: 0;
|
|
||||||
animation: 200ms ease-out both enter;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Main content: fade + slide */
|
/* Main content: fade + slide */
|
||||||
|
|||||||
Reference in new issue
Block a user