I would like to delay the loading of an image on :hover for 1 second every time it is moused over.
Is this possible?
code is:
<style>
#bg {background-image: url(bg.png);
background-repeat: no-repeat;
position:absolute;
margin-left: auto; margin-right: auto;display: block;
height: 354px;width: 571px;
border: 1px solid #000000; }
#delay {position: absolute;
width: 100%;
height: 354px;
}
#delay:hover {background: transparent url(delay.png) no-repeat;}
</style>
</head>
<body>
<div id="bg"> </div>
<div id="delay"> </div>
You could do it using CSS transitions, change the opacity from 0 to 1, in zero seconds, with a one second delay:
Currently only supported in Chrome/Safari/Opera