/    Sign up×
Community /Pin to ProfileBookmark

Animate Opacity in IE8 Problems!

Hello,

I’m currently using the following code to animate three boxes on page load:

[CODE]function animateVideo(){$(‘.video’).animate({opacity:1.0,top:”-=50px”},500,”swing”);}
function animateProduct(){$(‘.product’).animate({opacity:1.0,top:”-=50px”},500,”swing”);}
function animateMap(){$(‘.map’).animate({opacity:1.0,top:”-=50px”},500,”swing”);}

function animateHome(){setTimeout(“animateVideo();”,300), setTimeout(“animateProduct();”,600), setTimeout(“animateMap();”,900);}[/CODE]

Which you can see here: [URL=”http://www.cycrabike.co.uk/guard”]http://www.cycrabike.co.uk/guard[/URL] however, in IE8 this doesn’t seem to work correctly with the last box which is a google maps box, meaning as you can see in IE8 it starts visible and just moves.

I’ve been told i can use the jQuery effect fadeTo() which will work, however i’m not sure how to adapt my animate() code to use the fadeTo() function at the same time as moving.

Any ideas/fixes?

Cheers

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@copesauthorJun 07.2010 — I've narrowed the problem down slightly - The animate(opacity) does seem to work on IE8, however where all other browsers treats .map as a "group" and sets opacity on all objects within this div, IE8 seems to need to be told to seperatly hide and show each object within the .map div - is there a way around this? as writing lines and lines for each object in there including the corner graphics etc seems excessive.
×

Success!

Help @copes spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.6,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...