You used to do something like this
$('#foo').animate({opacity: 1},1000).fadeOut('slow');
The first animat does nothing, since you already have an opacity of 1 on the element, but it pauses for a while.
In jQuery 1.4, they embedded this into the structure, so you do not need to use a hack as shown above.
$('#foo').delay(1000).fadeOut('slow');
The functionality is the same as the original jQuery.delay() plugin http://www.evanbot.com/article/jquery-delay-plugin/4
Drew Jan 15 2018-10-15T00: 00Z
source share