jquery animate
$(".logo").animate(
{
opacity: .25, //将不透明度逐渐变成.25
height: 0 //高度逐渐变成0
},
{
duration: 1000, //动画时间
complete: function() { //动画完成时的回调函数
alert("animation complete!");
}
}
);
// .stop() // 停止当前动画
// .stop(true) // 停止所有动画
// .stop(true,true) // 停止所有动画,到达动画终点