height: 0 //结束时高度
},
onEnd: function(){ //结束回调
$(“#msg”).show().animate({width: ‘250px’}, 200).fadeOut(1000); //提示信息
addcar.css(“cursor”,”default”).removeClass(‘orange’).unbind(‘click’);
this.destory(); //移除dom
}
});
});
});
</script>
复制上面的代码,保存并运行即可看到效果,Fly插件的项目官网地址是:https://github.com/amibug/fly,值得一提的是,IE10以下需要添加以下js:
<script src=”requestAnimationFrame.js”></script>










