Looping with .each with delay in Jquery

后端 未结 5 1190
时光说笑
时光说笑 2021-01-16 14:20

I am not good at jQuery so I am not sure if my assumptions are corrent.

I am using the isotope plugin, with which I want to insert elements one by one (and not every

5条回答
  •  情书的邮戳
    2021-01-16 14:56

    $("#items_are_here").find('.item').each(function( index ) {
         var item = $(this);
         setTimeout(function(i) {
                $('#container').isotope( 'insert', i );
             },3000);
        });
    

提交回复
热议问题