Jquery animate使用

animate()方法来自定义动画

animate(params,speed,callback);
 (1)params:一个包含样式属性及值的映射,比如{property:"value",property2:"value2",.....}。
 (2)speed:速度参数,可选
 (3)callback:在动画完成时执行的函数,可选

例如:

$("#panel").click(function(){
    $(this).animate(animate({top:"200px",whdt:"200px;"},3000,function(){
     $(this).css("border","5px solid blue");
   });)
});

你可能感兴趣的:(jquery)