i want animate div top bottom 50 px , , wait 5 seconds , bottom top again, getting error saying delay not supported
$("#div").animate({ top: "+=50px" }, 1000).delay(5000).animate({ top: "-=50px" },1000, function() { // animation done });
any appreciated
thanks
are using jquery 1.4? delay method added in version 1.4 of jquery. check can run:
alert(jquery.fn.jquery);
Comments
Post a Comment