Code:
$("#telecomGrayscale", this).stop().animate({ top: '467px' },
{ duration: 400 }).delay(800).queue(function() {
$("#boxcaptionTelecom", this).stop().animate({ top: '272px' }, { duration: 900 });
});
The above code is not working as needed. The 2nd animation that is inside the queue () is not
working.
I just need to delay the second animation. Also tried setTimeout and setInterval could not get them to work.
In your second animation, the
thisis not what you think it is, so the selector withthisas a context is most likely empty.Try if this works: