I have created a small webpage, where I would like to animate content using jQuery during navigation. Its working perfectly in IE. If I use Firefox it's not working properly.
My code is as follows
$("#maincontent").animate({"top":"450px"},800, function(){
$("#maincontent").html($("#"+Lidentity).html())
.animate({"top":"-10px"},600)
.animate({"top":"10px"},100)
.animate({"top":"-5px"},100)
.animate({"top":"5px"},100)
.animate({"top":"0px"},100);
});
I have set the #maincontent
element position as absolute.