javascript - Mootools function callback -


how can make sure thankyou fades in after newsletter fades out?

overlay_newsletter.fade('out'); thankyou.setstyle('display', 'block').fade('in'); 

the following doesn't seem work

 overlay_newsletter.fade('out' function(){    thankyou.setstyle('display', 'block').fade('in');  }); 

i don't know how markup looks made own demo (here) runs on mouseover.

var afterfadeout = function () {     alert('complete');     thankyou.setstyle('display', 'block').fade('in'); }; overlay_newsletter.set('tween', {     oncomplete: afterfadeout }); 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -