mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-16 23:06:30 +00:00
Refine animation for browser wrapper opacity and adjust easing for smoother transitions
This commit is contained in:
@@ -267,14 +267,15 @@
|
|||||||
.then(() => {
|
.then(() => {
|
||||||
this.#currentParentTab.linkedBrowser.closest('.browserSidebarContainer').removeAttribute('style');
|
this.#currentParentTab.linkedBrowser.closest('.browserSidebarContainer').removeAttribute('style');
|
||||||
});
|
});
|
||||||
|
this.browserWrapper.style.opacity = 1;
|
||||||
gZenUIManager.motion
|
gZenUIManager.motion
|
||||||
.animate(
|
.animate(
|
||||||
this.browserWrapper,
|
this.browserWrapper,
|
||||||
{
|
{
|
||||||
...originalPosition,
|
...originalPosition,
|
||||||
opacity: 0.3,
|
opacity: 0,
|
||||||
},
|
},
|
||||||
{ type: 'spring', bounce: 0, duration: 0.4, easing: 'ease' }
|
{ type: 'spring', bounce: 0, duration: 0.6, easing: 'ease-in' }
|
||||||
)
|
)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.browserWrapper.removeAttribute('animate');
|
this.browserWrapper.removeAttribute('animate');
|
||||||
|
Reference in New Issue
Block a user