Como fazer uma imagem se mover em um caminho circular usando jquery?
Aqui eu estou tentando fazer uma imagem se mover em um caminho circular, mas não está se movendo em um caminho circular ... Eu tentei assimMovendo uma imagem ao redor lentamente
CSS
<code>#friends { position: absolute; } </code>
Marcação
<code><img src="http://jsfiddle.net/img/logo.png" id="friends"/> </code>
JS
<code>function moveit() { var newTop = Math.floor(Math.random()*350); var newLeft = Math.floor(Math.random()*1024); var newDuration = Math.floor(Math.random()*5000); $('#friends').animate({ top: newTop, left: newLeft, }, newDuration, function() { moveit(); }); } $(document).ready(function() { moveit(); }); </code>
Demonstração ao vivo:http://jsfiddle.net/W69s6/embedded/result/
Alguma sugestão??