adjust animation timing

This commit is contained in:
akcodez
2025-02-18 11:15:15 -08:00
parent a6506522ff
commit 137e9b47dc
3 changed files with 7 additions and 7 deletions

View File

@@ -24,15 +24,11 @@ export function AlertBanner({ message, button, link, show }) {
React.useEffect(() => {
const banner = bannerRef.current;
if (!banner) return;
// Define the event handler
const handleMouseEnter = () => {
banner.classList.add('has-hover');
};
// Attach the event listener
banner.addEventListener('mouseenter', handleMouseEnter);
// Clean up the event listener on unmount
return () => {
banner.removeEventListener('mouseenter', handleMouseEnter);