Add slide-in animations to AlbumCard overlay

- Genre/date block: slides in from bottom (0.4s ease-out)
- Action buttons: slide in from top (0.4s ease-out)
This commit is contained in:
vicrodh committed 2026-01-26 07:39:17 -06:00
1 parent 01c21fffb1
commit 6044213919
1 file changed
+37
+37
View File
@@ -368,6 +368,24 @@
left: 50%; left: 50%;
top: 75%; top: 75%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
opacity: 0;
}
.album-card:hover .action-buttons,
.action-overlay:focus-within .action-buttons,
.action-overlay.menu-open .action-buttons {
animation: slide-in-down 0.4s ease-out forwards;
}
@keyframes slide-in-down {
0% {
opacity: 0;
transform: translate(-50%, calc(-50% - 12px));
}
100% {
opacity: 1;
transform: translate(-50%, -50%);
}
} }
.overlay-btn { .overlay-btn {
@@ -421,6 +439,25 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 4px; gap: 4px;
opacity: 0;
transform: translateY(12px);
}
.album-card:hover .overlay-info,
.action-overlay:focus-within .overlay-info,
.action-overlay.menu-open .overlay-info {
animation: slide-in-up 0.4s ease-out forwards;
}
@keyframes slide-in-up {
0% {
opacity: 0;
transform: translateY(12px);
}
100% {
opacity: 1;
transform: translateY(0);
}
} }
.overlay-genre { .overlay-genre {