I am looking to create a rectangle that fills up gradually every day, increasing by 1% each time. This is the basic concept.
My main struggle is figuring out how to fill it up. I need the rectangle to increase by 1% of its width each day. So essentially, I only need to change the background color of 1/100th of the rectangle's width.
For instance, if my rectangle has a width of 100px, I would like to update the background of just the first 1px. It's similar to a battery indicator... Any ideas on how to achieve this? I prefer using HTML or CSS, but I'm open to JavaScript/jQuery solutions as well.
Thank you.