jquery - animate creating a full rotate loop -


i creat fish animation , want him complete full (circle) rotation

function anim() {     $(".fish_wrap").animate({         "left": "-90px" }, 5000);     } anim();  function animaterotate(d){     var elem = $(".fish_wrap");      $({deg: 0}).animate({deg: d}, {         duration: 9000,         step: function(now){             elem.css({                  transform: "rotate(" + + "deg)"             });         }     }); }  animaterotate(120);  $(".fish_wrap") .css({top:200,position:'absolute'}) .animate({top:0}, 8000, function() {  }); 

here fiddle link:

http://jsfiddle.net/txc5y/4/


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -