fix: ensure post card hover effects work by preventing animation property locking
All checks were successful
Deploy Theme / deploy (push) Successful in 13s
All checks were successful
Deploy Theme / deploy (push) Successful in 13s
This commit is contained in:
@@ -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 });
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user