Merge branch 'dev'

This commit is contained in:
Supra4E8C
2026-01-02 14:18:56 +08:00
2 changed files with 5 additions and 1 deletions

View File

@@ -14,7 +14,6 @@
gap: $spacing-lg; gap: $spacing-lg;
min-height: 0; min-height: 0;
flex: 1; flex: 1;
will-change: transform, opacity;
// During animation, exit layer uses absolute positioning // During animation, exit layer uses absolute positioning
&--exit { &--exit {
@@ -26,6 +25,10 @@
} }
} }
&--animating &__layer {
will-change: transform, opacity;
}
// When both layers exist, current layer also needs positioning // When both layers exist, current layer also needs positioning
&--animating &__layer:not(&__layer--exit) { &--animating &__layer:not(&__layer--exit) {
position: relative; position: relative;

View File

@@ -131,6 +131,7 @@ export function PageTransition({
opacity: 1, opacity: 1,
duration: TRANSITION_DURATION, duration: TRANSITION_DURATION,
ease: 'power2.in', // slow start, fast end ease: 'power2.in', // slow start, fast end
clearProps: 'transform,opacity',
}, },
0 0
); );