Although this is not limited to the loop plugin, it may help others. I came across this thread trying to find a solution for .animate () transparent / translucent png files. I had a problem with the black border that occurred in both IE7 and IE8. Images look great until I tried using jQuery to animate opacity ...
$('#my-png-img').stop().animate({opacity:0.0},3000);
I went through a series of solutions and, unfortunately, none of them were perfect. Although this thread is a bit outdated, it can help someone else continue to build the solution. I ended up using the Twin Helix solution ( http://www.twinhelix.com/css/iepngfix/ ) with a little change. I am not a big fan of .htc files, but it is not. I edited the iepngfix.htc file (~ line 75) to trap for IE7 and IE8. I changed...
!/MSIE (5\.5|6)/.test(navigator.userAgent) ||
to
!/MSIE (5\.5|6|7|8)/.test(navigator.userAgent) ||
From there I followed the general instructions (see demo), including adding this bit to my CSS
img, div, a, input { behavior: url(/_css/iepngfix.htc) }
Also, like the others, I had to paste my image into a container ...
<div id="img-container"><img src="/images/my_semi_trans_png24.png" /></div>
Then I applied the .animate () effect to the containing div. However, with a little restraint, this was the only way I was able to get the attenuation to work consistently. In one case, I even found that the transparency issue had an effect on animating the opacity of the transparent .gif file. Oh, and have I used .fadeIn () /. FadeOut, not .animate (), doesn't matter.
weezy Mar 03 '10 at 15:34 2010-03-03 15:34
source share