Newbie problem Javascript

Newbie problem Javascript
0

#1

So i am having a problem. I am currently doing the portfolio project, i am doing a matrix-code-rain style background for my nav bar.
Now all works fine, but when i resize the window the size of the canvas stays the same. I tried something at the end of the JS code, but i am having diffculties changing the canvas size on resizing.
My code: https://codepen.io/fajfara/pen/LdGKrR?editors=0010


#2

Try adding height: 100vh; to the body css.


#3

Oh, wow that is fantastic. It works. Do you mind if i ask you another question? How would i go on about removing this rain effect on mobile size?


#4