fix: SectionAccordion animation misbehave

This commit is contained in:
Ilia Mashkov
2026-05-22 14:22:08 +03:00
parent 43242c3bed
commit 5b686ad87c
3 changed files with 12 additions and 10 deletions
+9 -2
View File
@@ -341,14 +341,14 @@
}
/* Cross-section view transition (navigation between sections) */
::view-transition-old(section-content) {
::view-transition-old(section-title) {
animation-name: section-fade-out;
animation-duration: var(--duration-normal);
animation-timing-function: var(--ease-default);
animation-fill-mode: both;
}
::view-transition-new(section-content) {
::view-transition-new(section-title) {
animation-name: section-fade-in;
animation-duration: var(--duration-spring);
animation-timing-function: var(--ease-spring);
@@ -377,6 +377,13 @@
}
}
/* Disable group geometry interpolation — OLD and NEW live at different scroll
* positions, so morphing the container drags the slide-in across the viewport.
* Let old/new each animate at their own positions instead. */
::view-transition-group(section-body) {
animation: none;
}
/* Section body slide-in from right */
::view-transition-old(section-body) {
animation-name: section-body-out;