Fine-tune glow animation increment
This commit is contained in:
@@ -166,7 +166,7 @@ window.AnimeCat = class AnimeCat {
|
|||||||
const phase = 0.92 + 0.2 * Math.sin(t);
|
const phase = 0.92 + 0.2 * Math.sin(t);
|
||||||
this.glow.style.opacity = phase.toFixed(2);
|
this.glow.style.opacity = phase.toFixed(2);
|
||||||
// Wenn du magst: this.glow.style.filter = `blur(${10 + 2*Math.sin(t/2)}px)`;
|
// Wenn du magst: this.glow.style.filter = `blur(${10 + 2*Math.sin(t/2)}px)`;
|
||||||
t += 0.05;
|
t += 0.03;
|
||||||
this._glowWobbleId = requestAnimationFrame(loop);
|
this._glowWobbleId = requestAnimationFrame(loop);
|
||||||
};
|
};
|
||||||
loop();
|
loop();
|
||||||
|
|||||||
Reference in New Issue
Block a user