feat: Better animations for app background, b=(no-bug), c=common, workspaces

This commit is contained in:
Mr. M
2025-05-20 18:05:49 +02:00
parent 133cce8bf8
commit 9982b1af34
7 changed files with 70 additions and 46 deletions

View File

@@ -2273,6 +2273,23 @@ var gZenWorkspaces = new (class extends ZenMultiWindowFeature {
if (shouldAnimate) {
gZenUIManager._preventToolbarRebuild = true;
gZenUIManager.updateTabsToolbar();
animations.push(
gZenUIManager.motion.animate(
document.documentElement,
{
'--zen-background-opacity': [
document.documentElement.style.getPropertyValue('--zen-background-opacity'),
'1',
],
},
{
type: 'spring',
bounce: 0,
duration: kGlobalAnimationDuration,
}
)
);
}
await Promise.all(animations);
if (shouldAnimate) {