jQuery中hover 鼠标经过后延迟2秒执行

浏览:2633 发布日期:2013/10/20 分类:求助交流 关键字: jquery
$('.artist li').each(function(){

$(this).find('.cover').css('top', +$(this).height());

$(this).hover(function(){
$(this).find('.cover').animate({
'top': '0'
},350);
},function(){
$(this).find('.cover').animate({
'top':$(this).height()
},{
duration: 100,
complete:function(){
$(this).css('top', +$(this).parent('li').height())
}
});
});

});
最佳答案
评论( 相关
后面还有条评论,点击查看>>