Update.
This commit is contained in:
parent
db5431d77d
commit
8a85cd7990
@ -39,7 +39,7 @@ function glowCSSVariable(varName, glowColor, duration = 500) {
|
|||||||
const root = document.documentElement;
|
const root = document.documentElement;
|
||||||
|
|
||||||
//igetComputedStyle(root).getPropertyValue(varName).trim();
|
//igetComputedStyle(root).getPropertyValue(varName).trim();
|
||||||
glowColor = lightenColor(glowColor, 20);
|
glowColor = lightenColor(glowColor, 40);
|
||||||
root.style.setProperty(varName, glowColor);
|
root.style.setProperty(varName, glowColor);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
root.style.setProperty(varName, originalColor);
|
root.style.setProperty(varName, originalColor);
|
||||||
|
Loading…
Reference in New Issue
Block a user