环顾四周,无法找到答案。我需要动画的持续时间添加到该代码:改变动画/停止速度(持续时间)
$('a:has(.image-active)').hover(function() {
$('.image-active', this).stop().animate({"opacity": 1});
},function() {
$('.image-active', this).stop().animate({"opacity": 0});
});
但是,我不能工作了哪里放置的时间。刚刚它淡入1,并淡出为0,这必须是jQuery的默认值。
http://api.jquery.com/animate/ – 2011-12-21 15:09:50