Hi
I'm trying to make an infinite animate (loop).So I call the same function as a callback function.It works but I observed when the callback function is called (which is the same function) it takes some time.Is there any better way or a solution for that delay? Following is the code I use:
$(document).ready(function () {
scroll();
});
function scroll() {
$("#divtomove").css("left", "-150px");
$("#divtomove").animate({ left: "300px" }, 20000, scroll);
}