animate not working in IE
Hey folks,
I have a big problem, here is the sample of code:
-
<ul>
-
<li>
-
<a href="#"> <img src="#" /> </a>
-
<div class="info">
- <div><a href="#"> <img src="#" /> </a></div>
-
</div>
- </li>
-
</ul>
So, normaly the div.info element is with css: display:none; And there is displaying only "a" element.
But i have a little code of jquery who makes the div.info element showup when the mouse over on the "li" element. And code is working as i expecting, but not in the IE.
-
var pic = $('ul li');
-
pic.hover(function(){
- $('div.info', this).stop().animate({opacity:'0'}, 600, function(){ $(this).css({display:'block'}).animate({opacity:'1'}, 500) })
-
}, function() {
- $('div.info', this).stop().animate({opacity:'0'}, 200)
- })
So, can anybody help me, to make this work on ie?