that is my code http://jsfiddle.net/BREvn/2/ (it works) but i want everyone div to be with unique position coordinates. Now script get the first and others move to him place. How can be possible to fix this problem? I tryed a .each function but there wasn’t any results. I think this will be easy but i’m to too good in jquery/javascript.
$('#latestblock').animate({
top: newY,
left: newX
}, 500, function() { });
I think here must be in loop but dont know how to do it.
Something like this?
http://jsfiddle.net/BREvn/5/
I renamed the id to a class and created an infinite loop.
Also send the object into the moveRandom function ‘moveRandom(obj)’ and after de animation finishes, recall the moveRandom function with itself.