From 73beb97d83b3e2330a2f3c12c7194a492b155d71 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Mon, 26 May 2025 08:03:26 +0200 Subject: [PATCH] Adjust glow animation phase and increment --- animeCat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/animeCat.js b/animeCat.js index 6124d1f..b1ff992 100644 --- a/animeCat.js +++ b/animeCat.js @@ -163,10 +163,10 @@ window.AnimeCat = class AnimeCat { let t = 0; const loop = () => { // Sanfte Wellen-Animation der Opazität - const phase = 0.92 + 0.05 * Math.sin(t); + const phase = 0.92 + 0.2 * Math.sin(t); this.glow.style.opacity = phase.toFixed(2); // Wenn du magst: this.glow.style.filter = `blur(${10 + 2*Math.sin(t/2)}px)`; - t += 0.8; + t += 0.05; this._glowWobbleId = requestAnimationFrame(loop); }; loop();