verson 2.1
This commit is contained in:
parent
52101780c2
commit
e77235af6e
16
index.php
16
index.php
@ -207,11 +207,12 @@ $facebook_link = "https://www.facebook.com/profile.php?id=61587890927489";
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
transition: opacity 0.5s ease;
|
||||
transition: color 0.05s ease, transform 0.05s ease, text-shadow 0.05s ease, opacity 0.5s ease;
|
||||
color: #fff;
|
||||
text-shadow: 0 0 15px var(--primary-color), 0 0 30px rgba(0,0,0,0.5);
|
||||
display: block;
|
||||
margin-top: 0.2rem;
|
||||
will-change: color, transform, text-shadow;
|
||||
}
|
||||
|
||||
.track-label {
|
||||
@ -943,6 +944,13 @@ $facebook_link = "https://www.facebook.com/profile.php?id=61587890927489";
|
||||
// Intense scale boost for the card
|
||||
const cardScale = 1 + (average / 255) * 0.04;
|
||||
document.querySelector('.glass-card').style.transform = `translate(var(--shake-offset-x), var(--shake-offset-y)) scale(${cardScale})`;
|
||||
|
||||
// Aggressive title effect
|
||||
if (trackTitle) {
|
||||
trackTitle.style.color = '#ff0000';
|
||||
trackTitle.style.textShadow = '0 0 20px #ff0000, 0 0 40px #ff0000';
|
||||
trackTitle.style.transform = `scale(${1 + (average / 255) * 0.12})`;
|
||||
}
|
||||
} else {
|
||||
const dominantHue = (average * 2 + colorOffset) % 360;
|
||||
document.documentElement.style.setProperty('--dynamic-glow', `hsla(${dominantHue}, 100%, 60%, 0.8)`);
|
||||
@ -950,6 +958,12 @@ $facebook_link = "https://www.facebook.com/profile.php?id=61587890927489";
|
||||
document.documentElement.style.setProperty('--shake-offset-x', '0px');
|
||||
document.documentElement.style.setProperty('--shake-offset-y', '0px');
|
||||
document.querySelector('.glass-card').style.transform = '';
|
||||
|
||||
if (trackTitle) {
|
||||
trackTitle.style.color = '';
|
||||
trackTitle.style.textShadow = '';
|
||||
trackTitle.style.transform = '';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user