Please see Matt's answer to this question. He says that .delay()
is confusing to most people, and he gives the following example:
$('#foo').hide().delay(2000).slideDown().text('Hello!').delay(2000).hide();
See here for the fiddle. Could somebody explain the behaviour of that line of code?