In Nextjs, I can change the src using state when I hover over the image, but I want to do this with animation like fadein, fadeout.
const [logoSrc, setLogoSrc] = useState("/logo.png");
<Image
src={logoSrc}
width={237}
height={64}
priority
onMouseEnter={() => {
setLogoSrc("/hover-logo.png");
}}
onMouseOut={() => {
setLogoSrc("/logo.png");
}}
/>