I want to move the object, hold for 1000 ms, then hide it,
I get the code:
$("#test").animate({"top":"-=80px"},1500) .animate({"top":"-=0px"},1000) .animate({"opacity":"0"},500);
i use ".animate ({" top ":" - = 0px "}, 1000)" to implement the delay, this is not good.
I want to:
$("#test").animate({"top":"-=80px"},1500) .sleep(1000) .animate({"opacity":"0"},500);
any idea?
javascript jquery
Koerr May 30 '10 at 19:30 2010-05-30 19:30
source share