jeudi 24 décembre 2015

Random position on div creation

Currently I'm working on some layout with markers. These markers need to be placed randomly on my window and afterwards they need to be animated. I'm currently creating 50 divs and they are getting placed randomly already. Except for the fact that all 50 are getting placed on the same random spot.

So I'm hoping if someone can point out on how to place all 50 divs on different random locations so not all on the same spot. I think I'm close but not sure what to do next.

Here is my code so far: http://ift.tt/1OJknaZ

Thanks in advance.




Aucun commentaire:

Enregistrer un commentaire