refactor: remove redundant animationend cleanup logic
All checks were successful
Deploy Theme / deploy (push) Successful in 14s

This commit is contained in:
2026-02-22 09:22:09 +01:00
parent dc7a78621c
commit 9533f003dc

View File

@@ -11,12 +11,6 @@ document.addEventListener('DOMContentLoaded', () => {
item.style.animationDelay = `${index * 100}ms`; item.style.animationDelay = `${index * 100}ms`;
item.classList.add('animate-fadeInUp'); item.classList.add('animate-fadeInUp');
item.classList.add('animated'); 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 });
}); });
}; };