There is a function that should display photos on the page when added to a folder
function AddPhoto() { $.ajax({ url: 'private/add_photo.php', method: 'POST', data: {'echoImag':FILE_LIST}, beforeSend: function() { inProgress = true; } }).done(function(data){ data = jQuery.parseJSON(data); FILE_LIST = JSON.stringify(data['allImages']); if (data['newImages'].length > 0) { for (i=0; i<data['newImages'].length; i++) { if ((data['newImages'][i] != '.') && (data['newImages'][i] != '..')) { html += "<img src='"+dir+data['newImages'][i]+"' alt='' class='img-thumbnail' style='display:none;'>"; } } html = html.trim(); $(html).prependTo(".container").fadeIn(); //$(".container").prepend(html); html = ''; } inProgress = false; }); Everything works great, except for animation. Those. The photo appears, then disappears and then appears with an animation effect. And no matter how long I put everything happens at the same speed (the animation effect is also not important).
How to make the right animation?