Fix: update zen glance animations for smoother transitions and adjust timing

This commit is contained in:
mr. M
2024-11-10 19:58:24 +01:00
parent 259b25ab68
commit 9443169283
3 changed files with 7 additions and 13 deletions

View File

@@ -272,15 +272,7 @@
@keyframes zen-glance-content-animation-out {
0% {
opacity: 0;
}
5% {
opacity: 1;
}
80% {
opacity: 1;
border: none;
}
100% {

View File

@@ -32,7 +32,8 @@
opacity: 1;
& .browserContainer {
animation: zen-glance-content-animation-out .2s ease-in-out forwards !important;
opacity: 1 !important;
animation: zen-glance-content-animation-out .3s ease-out forwards !important;
animation-direction: reverse !important;
& browser {

View File

@@ -86,6 +86,7 @@
this.browserWrapper?.removeAttribute("animate-full");
this.browserWrapper?.removeAttribute("animate-full-end");
this.browserWrapper?.removeAttribute("has-finished-animation");
this.overlay?.removeAttribute("post-fade-out");
const url = data.url;
const currentTab = gBrowser.selectedTab;
@@ -118,7 +119,7 @@
this.browserWrapper.setAttribute("has-finished-animation", true);
this.#animating = false;
this.animatingOpen = false;
}, 400);
}, 500);
});
}
@@ -199,8 +200,8 @@
this.#currentBrowser = null;
this.lastCurrentTab = null;
this._duringOpening = false;
}, 500);
this._duringOpening = false;
}, 400);
});
});
}