Show HN: Fall asleep by watching JavaScript load
1–10 of 36 posts
Re: Show HN: Fall asleep by watching JavaScript load
#2I guess that when the brain is engaged in an activity, and that activity becomes boring, it creates good conditions for falling asleep.
Re: Show HN: Fall asleep by watching JavaScript load
#3Re: Show HN: Fall asleep by watching JavaScript load
#4Re: Show HN: Fall asleep by watching JavaScript load
#5Re: Show HN: Fall asleep by watching JavaScript load
#6I 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.
Re: Show HN: Fall asleep by watching JavaScript load
#7Re: Show HN: Fall asleep by watching JavaScript load
#8Did you mean to say that the "speed at which the text appears" decreases, or am I misunderstanding?
Re: Show HN: Fall asleep by watching JavaScript load
#9> The time the loader spins, as well as the speed at which the text appears, increases as you go through the story, so that you ideally never reach the end (unless you really, really want to). Did you mean to say that the "speed at which the text appears" decreases , or am I misunderstanding?