I have some content that I am loading to my page using AJAX. When it loads it flashes on screen and looks a bit messy. Is there anyway to add some jquery animations to it???
$("#posts").load("posts.php", {from_user: fm}, function(){});
You could use a wrapper to load content into. Assume you have <div class="postWrap"></div> inside <div id="posts"></div>.
CSS
.postWrap { display: none; opacity: 0 }
JS
$("#posts .postWrap").load(
"posts.php",
{from_user: fm},
function() {
$("#post .postWrap").fadeIn(); //for example, you could use any effect
}
);