Add fade-in animation for new video cards

This commit is contained in:
thePR0M3TH3AN committed 2025-09-25 14:42:57 -04:00
1 parent 6fb9f91a34
commit ab1eaaa5a1
2 files changed
+32 -1

No files matched your search

+23
View File
@@ -74,6 +74,29 @@ header img {
box-shadow: var(--shadow-md);
}
.video-card--enter {
opacity: 0;
animation: video-card-fade-in 220ms ease-out forwards;
}
@keyframes video-card-fade-in {
from {
opacity: 0;
transform: translateY(8px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@media (prefers-reduced-motion: reduce) {
.video-card--enter {
opacity: 1;
animation: none;
}
}
.video-card:hover {
transform: translateY(-4px);
box-shadow: var(--shadow-lg);