I'm exploring an idea for a loading animation, but I'm feeling a bit lost on where to begin. Basically, I have a text box that gets populated automatically with JavaScript on the page, however, it takes some time to load. I want to create something similar to the infinite-time progress bar in IE11 to display inside the box. It would be like a thin bar covering half of the width of the box and moving slowly across it. Here's an example:
How can I achieve this in a cross-browser compatible way, including mobile browsers?