程序猿改变世界
具体实现效果可查看Demo:http://timegowhere.com/post/animate.html
核心代码:
//往右移动200像素 function moveRight(){ $div.stop(); $div.animate({ marginLeft:"200px" },3000); } //往右和往下各移动200像素 function moveRightDown(){ $div.stop(); $div.animate({ marginLeft:"200px", marginTop:"200px" },3000); }
具体源代码直接查看Demo即可!
【相关Demo】
来源:时间去哪儿了博客(微信/QQ号:903918446),转载请保留出处和链接!
本文链接:http://timegowhere.com/post/animate_move_demo.html