【发布时间】:2010-05-30 19:30:05
【问题描述】:
我想向上移动对象,延迟 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);
有什么想法吗?
【问题讨论】:
标签: javascript jquery