jQuery fadeTo not working in IE8
- by Lynda
I have a div fading in using fadeTo. It works great in Firefox and IE9. It does not work in IE8. Here is my code:
JS:
var $j = jQuery.noConflict();
window.onload = function(){
$j('#fadein').fadeTo(6000, 1, function() {
});
};
HTML
<div class="img-center" id="fadein" style="opacity:0;">
<img src="src.jpg" alt="Text" class="feature-image" />
</div>
How do I get this to work in IE8? I do not mind changing from fadeTo to fadeIn or some other method of fading in a div as long as it works in IE8.