fix: ensure post card hover effects work by preventing animation property locking
All checks were successful
Deploy Theme / deploy (push) Successful in 13s

This commit is contained in:
2026-02-22 08:37:23 +01:00
parent 0b01773cec
commit 6f2d6b643d
2 changed files with 10 additions and 4 deletions

View File

@@ -11,6 +11,12 @@ document.addEventListener('DOMContentLoaded', () => {
item.style.animationDelay = `${index * 100}ms`;
item.classList.add('animate-fadeInUp');
item.classList.add('animated');
// Clean up animation class after it finishes to allow hover transforms
item.addEventListener('animationend', () => {
item.classList.remove('animate-fadeInUp');
item.style.opacity = '1';
}, { once: true });
});
};