如何在另一个完成时启动动画?

use*_*236 1 each jquery animation jquery-animate

我需要在另一个完成时启动动画?这是我有的:

$( "div.line" ).each(function() {   
    $( this ).animate({
        height: "100%",
    }, 1000 );      
});     
Run Code Online (Sandbox Code Playgroud)

Ant*_*ton 6

尝试使用 .delay()

$("div.line").each(function (i) {
    $(this).delay(i* 1000).animate({
        height: "100%",
    }, 1000);
});
Run Code Online (Sandbox Code Playgroud)

DEMO