javascript - I want Pause and Resume for this jquery animation -
$(document).ready(function() { settimeout("wave()", 0); }); function wave(){ $("#wave1") .animate({left:"100px", top:"400px" },2000) .animate({left:"200px", top:"0px" },2000) .animate({left:"300px", top:"400px" },2000) .animate({left:"400px", top:"0px" },2000) .animate({left:"500px", top:"400px" },2000) .animate({left:"600px", top:"0px" },2000) .animate({left:"500px", top:"400px" },2000) .animate({left:"400px", top:"0px" },2000) settimeout("wave()") }
is there way somehow pause/resume animation in jquery?
Comments
Post a Comment