I\'m using background image for a button and switch to a different one on :hover
.
When the switch happens on the first mouse over it briefly flashes the bac
Load both images using multiple background and make the first one on the top then adjust background-size
to show the other on hover. In this case, both images will be loaded initially and the second one will be ready on hover:
.backgroundbutton {
background-image:
url('http://www.BungalowSoftware.com/images/silver-background.jpg'),
url('http://www.BungalowSoftware.com/images/silver-background2.jpg');
background-size:auto;
width: 100px;
height: 30px;
background-color: orange;
}
.backgroundbutton:hover {
background-size:0 0,auto;
}
hover over me