feat(studio): animate flat inspector group expand/collapse

Adds a fast (120ms) CSS entrance animation for flat inspector accordion
group headers/body, gated to the group actually toggling (not derived
from remounting alone) to avoid a Chromium reflow quirk that otherwise
replays the animation on untouched collapsed siblings.
This commit is contained in:
Vance Ingalls
2026-07-14 15:51:56 -07:00
parent 2285b399e5
commit a0f2a65bc2
4 changed files with 96 additions and 5 deletions
+22
View File
@@ -447,3 +447,25 @@ body {
animation: none;
}
}
/* Flat inspector group header/body entrance (FlatGroupHeader) */
@keyframes hf-flat-group-in {
from {
opacity: 0;
transform: translateY(-4px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.hf-flat-group-enter {
animation: hf-flat-group-in 120ms ease-out;
}
@media (prefers-reduced-motion: reduce) {
.hf-flat-group-enter {
animation: none;
}
}