I'm trying to do the following:
Fade element out, replace it's HTML, and fade it in again.
So what better way to do this then chain, right?
Well apparently not.
I do it with chain, and there is some flickering when the element re-
appears, rather then have a smooth fade.
Is this happening because of both effects firing at the same time?
Anyhow, here's the code:
var AnimChain = new Chain();
AnimChain.chain(function(){
div.effect('opacity').start(1,0);
AnimChain.callChain();
})
AnimChain.chain(function(){
div.setHTML(msg);
AnimChain.callChain();
})
AnimChain.chain(function(){
div.effect('opacity').start(0,1);
dl.delay(3000);
})
AnimChain.callChain();
var dl = function(){
$('StatusInfoWin').effect('top').start(-30,-280);
div.remove();
}