Hello I have a div with a background image on my website set up so when you hover over it, it changes background images.
It works correctly but the only issue is that there is a slight delay when switching images, probably a 0.2 second delay. So when you hover over it, the div turns blank for 0.2 seconds and then the new image appears.
Does anyone know what is causing this issue? I am thinking it has to do with the speed in which the hover image loads, if that is the case then there probably isn't a solution for this issue and I will just have to live with it.
There is no javascript or jQuery associated with the div at all.
Here is my code.
HTML:
<div class="video-button">
</div>
CSS:
.video-button {
background: url('images/playbutton.png') center center no-repeat;
height: 113px;
width: 113px;
}
.video-button:hover {
background: url('images/playbutton-h.png') center center no-repeat;
}