Creating a personal progress bar

Hello,

I am trying to make an attribute stat chart for myself and I am stuck trying to get the stat bar to work as a level tracker (like a thermometer level increasing and decreasing with the temperature ). I am using a range counter as the base input change and I tried to incorporate the movement style of a progress bar, but I have had little luck in solving my problem. I would appreciate any help .

Thank you,

Here is the link to the page:

https://codepen.io/letsfundthee/pen/xxwGxPG