mirror of
https://github.com/zen-browser/components.git
synced 2025-07-07 17:45:30 +02:00
Refactor animation timing in ZenGradientGenerator
This commit is contained in:
parent
c0aae7a2ee
commit
aa13489798
1 changed files with 5 additions and 3 deletions
|
@ -366,9 +366,11 @@
|
|||
appWrapepr.removeAttribute('animating');
|
||||
appWrapepr.setAttribute('animating', 'true');
|
||||
document.body.style.setProperty('--zen-main-browser-background-old', document.body.style.getPropertyValue('--zen-main-browser-background'));
|
||||
setTimeout(() => {
|
||||
appWrapepr.removeAttribute('animating');
|
||||
}, 1000);
|
||||
window.requestAnimationFrame(() => {
|
||||
setTimeout(() => {
|
||||
appWrapepr.removeAttribute('animating');
|
||||
}, 600);
|
||||
});
|
||||
}
|
||||
this.customColorList.innerHTML = '';
|
||||
if (!theme || theme.type !== 'gradient') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue