refactor: remove redundant animationend cleanup logic
All checks were successful
Deploy Theme / deploy (push) Successful in 14s
All checks were successful
Deploy Theme / deploy (push) Successful in 14s
This commit is contained in:
@@ -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 });
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user