$('#slide-range').change(function () {
var val = ($(this).val() - $(this).attr('min')) / ($(this).attr('max') - $(this).attr('min'));
$(this).css('background-image',
'-webkit-gradient(linear, left top, right top, '
+ 'color-stop(' + val + ', #A90F00), '
+ 'color-stop(' + val + ', #E2E2E2)'
+ ')'
);
});
#slide-range{
outline-style:none;
box-shadow:none;
border-color:transparent;
-webkit-appearance: none;
-moz-apperance: none;
border-radius: 8px;
width: 334px;
height: 8px;
background-image: -webkit-gradient(
linear,
left top,
right top,
color-stop(1, #A90F00),
color-stop(1, #E2E2E2)
);
margin-bottom: 30px;
}
#slide-range::-webkit-slider-thumb {
-webkit-appearance: none !important;
background-color: #fff;
height: 20px;
width: 20px;
border-radius: 20px;
box-shadow:0 0 5px rgba(0,0,0,0.5);
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<input id="slide-range" type="range" min="0" max="100" step="1" value="100">
<div class="input-amount">
<input id="input-Amount" name="price" value="100">
<span class="unit">$</span>
</div>