如何在.animate()中设置时间限制 [英] How to set the timelimit in .animate()

查看:232
本文介绍了如何在.animate()中设置时间限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

$(.panel").animate({width:``show''});

正在使用以上代码将我的面板向左滑动...

请帮助我设置时间,以便面板自动恢复..

$(".panel").animate({ width: ''show'' });

am using the above code to slide my panel to left...

pls help me to set the time, so tat the panel will come reverse automatically..

推荐答案

在这里,完整的语法:jQury .animate() [ ^ ]

示例:
Here you go, full syntax: jQury .animate()[^]

Sample:


(' someElement').hide().animate({height:' 20px'}, 500 )
('someElement').hide().animate({height:'20px'}, 500)


这篇关于如何在.animate()中设置时间限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆