当前位置: 代码迷 >> Web前端 >> jquery实现图片的下上缓慢跳动
  详细解决方案

jquery实现图片的下上缓慢跳动

热度:152   发布时间:2012-09-11 10:49:03.0
jquery实现图片的上下缓慢跳动

直接上代码:

$(function(){
	$(".pic").mouseover(function(){
		if(!($(this).is(":animated"))){
			$(this).animate({"top":"-15px",},200).animate({"top":"-0px",},200)
			.animate({"top":"-12px",},200).animate({"top":"-0px",},200)
			.animate({"top":"-6px",},200).animate({"top":"-1px",},200)
			.animate({"top":"-1px",},200).animate({"top":"-0px",},200);
		}
	});
});

?if(!($(this).is(":animated"))) //不让其反复弹动

  相关解决方案