Home › Forums › JavaScript › Drop Random Pins Onto Dumby Map › Reply To: Drop Random Pins Onto Dumby Map
November 25, 2014 at 5:40 pm
#189220
Participant
Well, couple things. First off, you’re using the same random number on every iteration of the loop. Second, you’re applying the animation to the jquery object (the collection of pins) as a whole, instead of to the individual pins themselves.
I think jquery has an .each()
method, doesn’t it?
pins.each(function(){
// make random number
// animate
});
Also, I have no clue what a “Dumby Map” is…? and google didn’t really help.