我想将这个对象向上移动,延迟1000毫秒后再隐藏它。
我得到了以下代码:
$("#test").animate({"top":"-=80px"},1500)
.animate({"top":"-=0px"},1000)
.animate({"opacity":"0"},500);
我使用".animate({"top":"-=0px"},1000)"来实现延迟效果,但这不是一个好的方法。
我想要:
$("#test").animate({"top":"-=80px"},1500)
.sleep(1000)
.animate({"opacity":"0"},500);
任何想法?