Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript jQuery simultaneous fade-in-out Re: jQuery simultaneous fade-in-out

#127724
jigsawnet
Member

I have an issue with something similar if anyone can help ?

Using some jquery that fades images in holds them then fades out and goes on to the next image
But i can’t work out how to get it to fade the next image in **before** fading the first image out
this is the bit of code that i think controls the fading in and out…
function showText(id){
var text = $(‘‘,{
src:settings.textLayers[id],
css: {
marginTop : promoIMG.offset().top+settings.textTopOffset
}
}).hide();

text.load(function(){
text.fadeIn(‘slow’).delay(settings.textShowTime).fadeOut(‘slow’,function(){text.remove();
splashScreen.trigger(‘changeText’,[id+1]);
});
});

splashScreen.append(text);
}
any help anyone can give would be good as I’m a novice at this stuff…..