title: how to rotate div on slider left right
body: <p>How can I rotate this <code>div</code> using the <code>slider</code> and JQuery?</p>
  
  <p>Sliding left should rotate left and sliding right should rotate right.</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-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;div class="inner" style="width:100px; height:100px; background-color:black;"&gt;&lt;/div&gt;
  &lt;input type="range" value="0" min="-360" max="360" /&gt;</code></pre>
  </div>
  </div>
  </p>