title: How do I change the color on my noUiSliders depending on the value it currently is at?
body: <p>So I created some custom color classes for my sliders and it works well...this is how it looks:</p>
  
  <p><a href="https://i.stack.imgur.com/n4w7E.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/n4w7E.png" alt="colored-sliders"></a></p>
  
  <p>All I simply did was created the following classes:</p>
  
  <pre><code>.red .noUi-connect {
    background: #c0392b;
  }
  
  .orange .noUi-connect {
    background: #2980b9;
  }
  
  .green .noUi-connect {
    background: #27ae60;
  }
  </code></pre>
  
  <p>And applied them to my divs like so:</p>
  
  <pre><code>&lt;div id="slider-speed" class="slider red"&gt;&lt;/div&gt;
  &lt;div id="slider-speed" class="slider orange"&gt;&lt;/div&gt;
  &lt;div id="slider-speed" class="slider green"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>However, what I want to do is whenever the user moves the slider left or right, the color of the slider changes based on the value.</p>
  
  <p>So 1 - 3 = red, 4 - 6 = orange, 7 - 10 = green.</p>
  
  <p>How do I do that?</p>