I suppose one could render the text off-screen or in an invisible DIV, measure how many letters it has on the target display, find the time to render the line (if the text shows at 2 chars/sec, 20 chars takes 10 seconds to render), measure how wide the element is with the 20 chars, and then make it a DIV where the text within it is left-justified, and the DIV's left margin shrinks at a constant rate per animation frame.
It could definitely be a fun exercise. Also maybe just rendering all the text in the same color as the background and then changing the colors of the characters one by one could be an interesting option (just thought about it), but I think yours would render better.
As a side note, I have to say that posting something as simple as this, where you can’t really get too attached to the project and can read feedback in a truly neutral way - instead of just pretending - is so refreshing...
Thanks for your comment!
Did you mean to say that the "speed at which the text appears" decreases, or am I misunderstanding?
I’ve now updated it to: "As you go through the story, the time the loader spins increases while the speed at which the text appears decreases"
sarusso•4h ago
I guess that when the brain is engaged in an activity, and that activity becomes boring, it creates good conditions for falling asleep.