mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-17 07:16:16 +00:00
Add opacity transition to sidebar during animation
This commit is contained in:
@@ -238,12 +238,14 @@ var gZenCompactModeManager = {
|
|||||||
)
|
)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.sidebar.style.transition = 'none';
|
this.sidebar.style.transition = 'none';
|
||||||
|
this.sidebar.style.opacity = 0;
|
||||||
this.getAndApplySidebarWidth();
|
this.getAndApplySidebarWidth();
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.sidebar.removeAttribute('animate');
|
this.sidebar.removeAttribute('animate');
|
||||||
document.documentElement.removeAttribute('zen-compact-animating');
|
document.documentElement.removeAttribute('zen-compact-animating');
|
||||||
this.sidebar.style.removeProperty('margin-right');
|
this.sidebar.style.removeProperty('margin-right');
|
||||||
this.sidebar.style.removeProperty('margin-left');
|
this.sidebar.style.removeProperty('margin-left');
|
||||||
|
this.sidebar.style.removeProperty('opacity');
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.sidebar.style.removeProperty('transition');
|
this.sidebar.style.removeProperty('transition');
|
||||||
|
Reference in New Issue
Block a user