Возможно ли, чтобы jquery каждый цикл начинался с индекса 20 после нажатия кнопки «Загрузить больше»? я не могу понять это правильно, потому что цикл каждый раз начинается с 0....
С уважением,
Стефан
after:function() {
var images = $("#instafeed").find('a');
var len = images.length;
$.each(images, function(index, image) {
var delay = (index * 75) + 'ms';
$(image).css('-webkit-animation-delay', delay);
$(image).css('-moz-animation-delay', delay);
$(image).css('-ms-animation-delay', delay);
$(image).css('-o-animation-delay', delay);
$(image).css('animation-delay', delay);
$(image).addClass('animated flipInX');
});
$('#loadmore').click(function(e){
e.preventDefault();
index = 20;
feed.next();
});
}