views:

553

answers:

2

Hi! I am using jQuery cycle and also a fade in/out on this site:

http://www.lunatestsite.co.uk

Cycle for the banner, fades on hover for the bottom nav buttons. In anything but IE8, all is peachy, but IE8 has incredibly jerky fades.

There is mention of IE8 having a different method of animating transparency on:

http://stackoverflow.com/questions/1015395/ie8-jquery-fadeto

It seems hard to believe IE6 implements this fine but the latest and greatest fails. I've seen mention of relative/absolute positioned elements having problems with fades, but that doesn't explain the floated banner.

Does IE8 suck, or my code? Any opinions / ideas gratefully welcomed! Thanks

+1  A: 

It lookst as if it ist a problem on IE 8, as I had a similar behaviour, on one of my systems. I resolved to using a different animaiton, which in my case was no problem.

Obalix
+2  A: 

Its your photo background. Replace the banner portion with a white background for IE8 and it will fade smoothly, and make sure you send the finger to the IE team in the conditional comment.

Edit: it seems that only making the bg white behind the banner won't do it. I only get a smooth transition removing the background IMG tag you have (not the body background-image)

Edit2: final test, putting the image in the class="bg" img tag as a normal block element with a background-image fixed it too. So we can conclude that having the floating image in the back is bad for IE8, use a normal div with a background IMO. If you need to stretch the image to fit the page we would need to think another solution, or have only IE8 not stretch.

F.Aquino
Can you post the code you've used? I'm not getting it to work still! Thanks! If it doesn't stretch, so be it.
luke
Aah, my bad, got my conditional comments wrong way round, just filtering that <img> away from IE8 seems to work. Not worried about the image stretching. Thank you F. Aquino!
luke