Having an issue in Chrome that doesn't occur in Firefox. When hovering over a PNG within a carousel plugin or dragging an element with Jquery, the hover image briefly distorts the background. Looking for a solution to improve user experience. Let me know what code you need to see.
Code Examples
HTML:
<li id="img-home"><img id="img-home-src" src="<?php echo base_url();?>files/assets/images/homepage/img.png" alt="" /></li>
CSS:
li {
text-align: center;
cursor: pointer;
}
#img-home
{
border:0;
width:386px;
height:484px;
overflow:hidden;
display: inline-block;
padding: 0 0 0 0;
margin: 0 0 0 0;
}
#img-home-src
{
padding: 0 0 0 0;
margin: 0 0 0 0;border:0;
}
Jquery:
$("#img-home").hover(
function () {
$("#img-home-src").attr("src","<?php echo base_url();?>files/assets/images/homepage/img_hover.png");
},
function () {
$("#img-home-src").attr("src","<?php echo base_url();?>files/assets/images/homepage/img.png");
}
);