How do I delay an animation in jquery?
I have a <p> in to the page as soon as the page loads. I have another <p> that I want to slide in only after the first <p> finishes coming in, and then I want an image to move when that second <p> is in.
How do I do that? (Right now, they all come in simultaneously)
Here's my code:
$(document).ready(function()
{
$('p.title').animate({"left":"300px",
},1020);
$('p.subtitle').animate({"left":"370px",
},1020);
$('.logo').animate({left: '+=250', bottom: '+=200', height:'140'},1120);
});
thanks!