feat: Logo-Animation übernimmt exakte identifizierte Farbe
JSON wird per fetch geladen, Fill-Objekte von 'Small 4' (Gelb) werden direkt mutiert und Animation ab aktuellem Frame neu geladen. Kein hue-rotate mehr – eine Farbe ist exakt die gewählte Farbe. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -49,8 +49,6 @@ document.addEventListener('colorChanged', (e) => {
|
||||
const { h, s } = e.detail;
|
||||
const pastelS = Math.round(Math.min(s * 0.5, 45));
|
||||
document.body.style.background = `hsl(${h}, ${pastelS}%, 92%)`;
|
||||
const logo = document.getElementById('lottie-logo');
|
||||
if (logo) logo.style.filter = `hue-rotate(${h - 52}deg)`;
|
||||
});
|
||||
|
||||
initEingabe(addFavorit, addColorToSchema);
|
||||
|
||||
Reference in New Issue
Block a user