I want to create a progress bar in which user will enter interval. In every interval and 20% progress color of the bar should change.
For example: User inputs 100, then after every 100 ms, the bar will progress by 20% and its color will change, like starting with blue, then green, yellow, orange and finally red
I went to W3 schools and found something similar but it was not done in bootstrap and I want to use jQuery instead of JavaScript as well but I honestly don't have any idea how to start so I did not attach any JavaScript nor jQuery code as it is blank :(
<form class="form">
<label for="start" class="mr-3 ml-3">Start Temperature (Celcius) :</label>
<input class="form-control mr-2 ml-3" type="number" id="start" />
<label for="end" class="mr-3 ml-3">End Temperature (Celcius) :</label>
<input class="form-control mr-2 ml-3" type="number" id="end" />
<label for="interval" class="mr-3 ml-3">Interval (ms):</label>
<input class="form-control mr-2 ml-3" type="number" id="interval" />
<button id="click" class="btn btn-danger ml-3 mt-3" type="button" onclick="move()">Start</button>
</form>
<div class="row">
<div class="text-right col-2 mt-3">
<p>Start</p>
</div>
<div class="col-8">
<div id="progress" class="progress mt-3 ">
<div id="bar" class="progress-bar"></div>
</div>
</div>
<div class="col-2 mt-3">
<p>End</p>
</div>
</div>
</div>
Thank you