Move texture accordinally to progress bar MATERIAL

Hey everyone,
I want to create a material that moves a texture accordingly my health bar(progress bar). How can i create that material?
My material knowledge is limited!

I want to do something like the health bar in god of war 4. They had a white texture on the right side of the health bar!

That is exactly what i am trying to achieve!

A material that moves a texture
accordingly my health bar?

That sounds a wee bit confusing. Do you want to use material in the progress bar?

LIke in here, right?