jQuery animate opacity doesn't work properly on IE
Posted
by fidoboy
on Stack Overflow
See other posts from Stack Overflow
or by fidoboy
Published on 2009-09-03T20:03:16Z
Indexed on
2010/04/27
11:03 UTC
Read the original article
Hit count: 136
I'm trying to use animate function to change the height and opacity for a DIV. The div has a image background in CSS, it works fine on Firefox and Safari, but when i test it on IE the background is being removed. This is my code:
if (jQuery.support.opacity) {
jQuery('#list_box').animate({opacity: '1',height: '300px',top: newTop},{duration: 300});
} else {
jQuery('#list_box').animate({filter: 'alpha(opacity=100)',height: '300px',top: newTop},{duration: 300});
}
How can i fix it?
© Stack Overflow or respective owner