I have an img tag like this (and I can't use a container)
<img src="https://example.com/first-image.jpg" class="my-image">
And I would like to display a second image instead of the first one on mouseover using only CSS. Maybe doing something like this:
.my-image:hover {
background-image: url("https://example.com/second-image.jpg");
}
I'm not sure if it that's possible. Any ideas?