jQuery-animate(动态效果) 其他 2021-03-05 19:43 0 阅读 animate $(selector).animate(obj,time,callback) //such as $(selector).animate({ 'margin-left':'-=500px'},1000,callback) 用于给某元素添加动效,如上,使得某元素向左移动500像素,动画持续时间为1000ms(1s),另外还可以写回调函数,来执行更精细的操作 猜你喜欢