mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-03 08:28:38 +00:00
Refactor animation code for tab editing to improve readability and maintainability
This commit is contained in:
@@ -643,11 +643,15 @@ var gZenVerticalTabsManager = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Maybe add some confetti here?!?
|
// Maybe add some confetti here?!?
|
||||||
gZenUIManager.motion.animate(this._tabEdited, {
|
gZenUIManager.motion.animate(
|
||||||
scale: [1, 0.98, 1],
|
this._tabEdited,
|
||||||
}, {
|
{
|
||||||
duration: 0.25,
|
scale: [1, 0.98, 1],
|
||||||
});
|
},
|
||||||
|
{
|
||||||
|
duration: 0.25,
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
this._tabEdited.querySelector('.tab-editor-container').remove();
|
this._tabEdited.querySelector('.tab-editor-container').remove();
|
||||||
label.classList.remove('tab-label-container-editing');
|
label.classList.remove('tab-label-container-editing');
|
||||||
|
Reference in New Issue
Block a user