I have created a jQuery animation that can be seen by clicking the Preview button on top:
$(function(){
$.each([1, 2, 3, 4, 5, 6, 7, 8, 9], function() {
var elem = $('<div>').html('Number : ' + this).appendTo($('body')).hide();
$("body").queue(function(next) {
elem.slideDown('slow', next);
});
});
});
I have used the slideDown animation method. The problem is that all items slide down together. I want each number to display after short delay.
An example using recursive anonymous function. Put this inside your document-ready function.