I want a div to fadeIn while it's animating(moving up), and the fadeIn needs to occur during the final 2 seconds of the animation just as it is completes.
Please note that I don't want it to both fadeIn and animate simultaneously, the fadeIn needs to occur halfway through the animation as the div is moving up.
$('header').delay(1000).fadeIn(1000)
$('header').animate({
'marginTop': '-=200px'
}, 2000);
The animations are just queued one after the other and I can't get them to work halfway through.