I am trying to make a hovering effect on an image when it's hovered over it will change to another picture. I can't seem to get it to work when I'm not using the anchor tag. My goal is to have the picture change when I hover over a button, which I believe will require some jQuery magic. Here is my code for just trying to change the image when hovered over but somehow not working. Am I missing something?
HTML
<div>
<img src="images/newpic.png" class="img-circle homeimage" alt="Responsive image"/>
</div>
CSS
.homeimage {
height:200px;
width: auto;
background-image: url('../images/newpic.png');
}
.homeimage:hover {
background-image: url('../images/funnypic.png');
}