mirror of
https://github.com/zen-browser/components.git
synced 2025-07-07 21:39:58 +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.removeAttribute('animating');
|
||||||
appWrapepr.setAttribute('animating', 'true');
|
appWrapepr.setAttribute('animating', 'true');
|
||||||
document.body.style.setProperty('--zen-main-browser-background-old', document.body.style.getPropertyValue('--zen-main-browser-background'));
|
document.body.style.setProperty('--zen-main-browser-background-old', document.body.style.getPropertyValue('--zen-main-browser-background'));
|
||||||
setTimeout(() => {
|
window.requestAnimationFrame(() => {
|
||||||
appWrapepr.removeAttribute('animating');
|
setTimeout(() => {
|
||||||
}, 1000);
|
appWrapepr.removeAttribute('animating');
|
||||||
|
}, 600);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
this.customColorList.innerHTML = '';
|
this.customColorList.innerHTML = '';
|
||||||
if (!theme || theme.type !== 'gradient') {
|
if (!theme || theme.type !== 'gradient') {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue