refactor(PageTransition): optimize layer management and transition handling

This commit is contained in:
LTbinglingfeng
2026-01-29 03:10:04 +08:00
parent 8148851a06
commit a88078e171
2 changed files with 50 additions and 60 deletions

View File

@@ -14,6 +14,7 @@
gap: $spacing-lg;
min-height: 0;
flex: 1;
background: var(--bg-secondary);
backface-visibility: hidden;
transform: translateZ(0);
@@ -21,7 +22,6 @@
&--exit {
position: absolute;
inset: 0;
z-index: 1;
overflow: hidden;
pointer-events: none;
will-change: transform, opacity;
@@ -38,6 +38,5 @@
&--animating &__layer:not(.page-transition__layer--exit) {
position: relative;
z-index: 0;
}
}