我想向上移动物体,延迟1000ms,然后隐藏它,
我得到的代码:
$("#test").animate({"top":"-=80px"},1500)
.animate({"top":"-=0px"},1000)
.animate({"opacity":"0"},500);
Run Code Online (Sandbox Code Playgroud)
我用".animate({"top":" - = 0px"},1000)"来实现延迟,这不好.
我想要:
$("#test").animate({"top":"-=80px"},1500)
.sleep(1000)
.animate({"opacity":"0"},500);
Run Code Online (Sandbox Code Playgroud)
任何的想法?