title: animate element dynamically on creation
body: <p>I want to dynamically create divs, append them to the body and set a jQuery animation.</p>
  
  <p>This is where the elements are created:</p>
  
  <pre><code>function drawSpot()
  {
   var myH1 = document.createElement("div");
   myH1.style.position = "absolute";
   myH1.style.top = GetRandom(0,100)+"%";
   myH1.style.left = GetRandom(0,100)+"%";
   myH1.style.width="40px";
   myH1.style.height="40px";
   $("body").append(myH1);
  
  }
  </code></pre>
  
  <p>And from the time on they are appended to the body, I want to start the animation.</p>