我想向上移动对象,延迟1000ms,然后隐藏它,
我得到代码:
$("#test").animate({"top":"-=80px"},1500)
.animate({"top":"-=0px"},1000)
.animate({"opacity":"0"},500);
我使用“.animate({"top":"-=0px"},1000)"来实现延迟,这不好。
i want:
$("#test").animate({"top":"-=80px"},1500)
.sleep(1000)
.animate({"opacity":"0"},500);
任何想法?
怎么样.delay()
?
http://api.jquery.com/delay/ http://api.jquery.com/delay/
$("#test").animate({"top":"-=80px"},1500)
.delay(1000)
.animate({"opacity":"0"},500);
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)