animate() not working for opacity in IE

Posted by Karthik on Stack Overflow See other posts from Stack Overflow or by Karthik
Published on 2009-12-31T07:28:30Z Indexed on 2010/04/19 21:13 UTC
Read the original article Hit count: 277

Filed under:
|
|

I'm trying to animate a div from 100% opacity to 40% opacity WITHOUT using fadeTo(). I need to use animate().

It works fine in chrome/FF/safari, but in IE, the opacity doesn't animate, it simply changes to that after the animation is done. Happens in IE 7 and 8. I'm doing this:

                .animate({
                    width: new_width,
                    top: new_top,
                    left: new_left,
                    padding: new_padding,
                    opacity: 0.4,
                    filter: "alpha(opacity=40)"
                },

... it's just not animating the opacity. Any ideas?

© Stack Overflow or respective owner

Related posts about animate

Related posts about jQuery