Complex Slider

I’m looking for a way to create a slider that has a percentage fill when you change the value. It can be through a material or any other way, I just need it to be changed in size without really destroying the effect.
Thanks for your time!