title: Get background color of input range position
body: <p>I have an input with type range which has a background colour that is a gradient. I'd like the background colour of the gradient to be outputted to a class where the value of the range currently is at.</p>
  
  <p>For example if the input's range is between 1-100 and the input's value is 1 making it be to the left side of the input the colour to the left will be outputted. </p>
  
  <p><img src="https://i.stack.imgur.com/CtrsN.png" alt="enter image description here"> </p>
  
  <p>Any help to this question would be much appreciated. </p>