I’m looking for a little help with my jQuery fading sequence.
My Code:
$('#1').fadeOut('fast');
$('#1same').fadeOut('fast');
$('#fadeinme').fadeIn('slow');
I’m looking to add a 1 second delay after the first 2 (#1 & #1same fade out at the same time) before the 3rd fades in.
Thanks!
We can use the
completedcallback to execute thefadeInafter the first animation has completed, then use.delayto add the one second delay:Do note that in HTML4,
ids cannot start with a number.