update glare background gradient for improved visual effect
This commit is contained in:
parent
f24e0de31b
commit
bf568fa9d8
@ -74,7 +74,9 @@ document.querySelectorAll('.card').forEach(card => {
|
||||
const gy = ((e.clientY - rect.top) / rect.height * 100).toFixed(1);
|
||||
|
||||
const accent = getComputedStyle(this).getPropertyValue('--accent').trim() || '#6366f1';
|
||||
glare.style.background = `radial-gradient(circle at ${gx}% ${gy}%, color-mix(in srgb, ${accent} 35%, white) 0%, transparent 65%)`;
|
||||
glare.style.background = `radial-gradient(circle at ${gx}% ${gy}%,
|
||||
color-mix(in srgb, ${accent} 18%, transparent) 0%,
|
||||
transparent 70%)`;
|
||||
});
|
||||
|
||||
card.addEventListener('mouseleave', function () {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user