I need to have slider confirmation button which will look like below
Initially look of the button will be:
After user completes the slide it must look like:
I currently have the code below. How to modify to achieve it
<button id="slider">
<input id="confirm" type="range" value="0" min="0" max="100" />
<span >File deleted.</span>
</button>