I have a parent div with a child image element inside of it. When I hover over the parent div I want my child element's src to change to a different source. But I'm struggling to find a way to do this with tailwind.
<button className="flex flex-col items-center justify-center w-40 h-40 mx-12 transition ease-in-out rounded-full shrink-0 text-primary hover:text-white hover:bg-light">
<div className="relative flex items-center justify-center w-20 h-20 mb-2">
<Image src={icon} alt={`${title} icon`} />
</div>
<span className="text-xl text-center">{title}</span>
</button>
Image should turn white (different source) on hover. How to do this with Tailwind?
