158
rated 0 times
[
165]
[
7]
/ answers: 1 / hits: 25709
/ 13 Years ago, tue, june 14, 2011, 12:00:00
I have a problem with animate loop. There is an object i want to move in a special way and do it in loop. Are there any native options to make it? I have this:
$(function () {
function runIt() {
$('#div').show(slow);
$('#div').animate({marginLeft:300px},8000);
$('#div').animate({marginLeft:0px},8000);
$('#div').hide(slow, runIt);
}
runIt();
});
But it seems not so pretty.
More From » jquery