title: Rotating a div how to set around which point to rotate?
body: <p>My javascript is:</p>
  
  <pre><code>$(function() {
      var $elie = $(".circle");
      rotate(0);
      function rotate(degree) {        
          $elie.css({ WebkitTransform: 'rotate(' + degree + 'deg)'});  
          $elie.css({ '-moz-transform': 'rotate(' + degree + 'deg)'});                      
          timer = setTimeout(function() {
              rotate(++degree);
          },5);
      }
  }); 
  </code></pre>
  
  <p>How do I rotate the div around another center point?</p>
  
  <p>Here's demo:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(function() {
      var $elie = $(".circle");
      rotate(0);
      function rotate(degree) {        
          $elie.css({ WebkitTransform: 'rotate(' + degree + 'deg)'});  
          $elie.css({ '-moz-transform': 'rotate(' + degree + 'deg)'});                      
          timer = setTimeout(function() {
              rotate(++degree);
          },5);
      }
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.circle {
    width: 200px;
    height: 200px;
    background: green;
    border-radius: 50%;
    border: 4px dashed black;
   
    margin: calc(50vh - 100px) auto 0 auto;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;div class="circle"&gt;
  
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>