Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Drop Random Pins Onto Dumby Map Reply To: Drop Random Pins Onto Dumby Map

#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.