$(".logo").click(function () { $(this) .animate({ left: -200 }) .animate({ left: 200 }) .animate({ left: -200 }) .animate({ left: 200 }) .animate({ left: 0 }); }); //左右滑动
Jquery demo
原文:http://www.cnblogs.com/LLMjiayou7/p/6270270.html