1
0

Refine glow wobble animation logic in animeCat.js

This commit is contained in:
2025-05-26 07:54:38 +02:00
parent d98bf4d13a
commit f8259a1913

View File

@@ -162,10 +162,10 @@ window.AnimeCat = class AnimeCat {
_startGlowWobble() {
let t = 0;
const loop = () => {
// z.B. sanft die Opazität und evtl. blur modifizieren
// Sanfte Wellen-Animation der Opazität
const phase = 0.92 + 0.08 * Math.sin(t);
this.glow.style.opacity = phase.toFixed(2);
// Für fancy: this.glow.style.filter = `blur(${10 + 3*Math.sin(t/2)}px)`;
// Wenn du magst: this.glow.style.filter = `blur(${10 + 2*Math.sin(t/2)}px)`;
t += 0.05;
this._glowWobbleId = requestAnimationFrame(loop);
};