There is a code that adds new elements to the page using ajax. I want the new elements to stand out in color against the background of old ones, and later on with the help of animation, the color smoothly turned into the color of old elements. Tell me how to implement it?
$(document).ready(function(){ function check(){ var u=$('#body tr:first').data('u'); $.get("ajax.php?u="+u, function(data){ var d = jQuery.parseJSON(data); if(d.success>0){ $('#body').prepend(d.html); } }); } setInterval(function(){check()}, 5000); }); this code checks new items