CSS Code:
#btn{
background: url(transparent.png) no-repeat;
filter: alpha(opacity=0);
-moz-opacity: 0;
-khtml-opacity: 0;
opacity: 0;
}
Use PNG image for modern Browsers ( mozilla , Opera, Chrome etc ) :
background:url(../images/banner01.png) no-repeat right 13px;
Add this For IE ( Use another CSS Or use IE hack )
/* ie fix */
background-image:none;
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="images/banner01.png",
sizingMethod="crop");
filter:''
hack does not work with current jQuery (1.6.1) anymore
There is currently no solution for this that I'm aware of. Just have to wait for IE to catch up with the rest of the world. I had to abandon such a feature in a recent project just days ago. You unfortunately cannot have a feathered-edge PNG with IE fading in and out with jQuery.
For me it worked to just include the filter property with blank value in jQuery's .animate()function
Maybe this will work for you, too.
$("#btn").animate({opacity:1,"margin-left":"-25px", filter:''});
Additionally you might have to remove the filter property from your button's CSS.