var current = null; $('#blocks div').each(function (i) { current = this; setTimeout(function () { $(current).slideDown(1000, function () { $(this).slideUp(1000); }); }, i * 2000); });