title: How to make heading speed up per click using jquery and javascript
body: <p>I am trying to make it to where everytime you click the heading it speeds up. However it either speeds up for the first few click or starts to become extremely slow. I have also tried changing the sign of *= 999 to += and -= and i do not find any different results. Please help.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var x = 10000
    //x is the speed of animate
    //this is where the movement is defined for the heading
  function move() {
      $("h1").animate({
        "left": "+=200px"
      }, x).animate({
        "top": "+=200px"
      }, x).animate({
        "left": "-=200px"
      }, x).animate({
        "top": "-=200px"
      }, x);
    }
    //this should make the heading move faster
  $("h1").click(function() {
    move()
      //this should make it move faster
    x *= 999
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"&gt;&lt;/script&gt;
  &lt;h1 id="heading" style="position:absolute;"&gt;Watch the moving heading!&lt;/h1&gt;</code></pre>
  </div>
  </div>
  </p>