feat(ui): add glowing border effect and improve card hover interactions

- implemented glowing border effect on cards when cursor is near
- multiple cards can glow simultaneously within proximity
- smooth fade-out without flicker on mouse leave
- improved hover animation for better user experience
This commit is contained in:
lockbitchat
2025-10-02 16:52:31 -04:00
parent 6bed472e09
commit 7682f57889
11 changed files with 161 additions and 99 deletions

View File

@@ -127,3 +127,43 @@ tr.bg-black-table {
padding-right: 16px;
}
}
.card {
position: relative;
border-radius: 12px;
overflow: hidden;
transition: transform 0.3s ease;
}
.card::before {
content: "";
position: absolute;
inset: 0;
border-radius: 12px;
padding: 2px;
background: radial-gradient(
circle at var(--x, 50%) var(--y, 50%),
var(--color),
transparent 80%
);
opacity: 0;
transition: opacity 0.4s;
-webkit-mask:
linear-gradient(#fff 0 0) content-box,
linear-gradient(#fff 0 0);
-webkit-mask-composite: xor;
mask-composite: exclude;
}
.card.active-glow::before {
opacity: 1;
}
.card::after {
content: "";
position: absolute;
inset: 3px;
border-radius: 10px;
z-index: 1;
}