Hi all,

I'm a beginner at JS and I'd like to write a code where, when the spacebar is pressed, a line of text fades into the screen. When the spacebar is pressed again, that line of text fades out and a new line of text fades in, and so on.

Any help would be appreciated. Thanks all!