I've never worked with Javascript before so this is new territory for me.
I've used this code to make an overlay menu:
https://www.w3schools.com/howto/howto_js_fullscreen_overlay.asp
It's working fine but the link doesn't tell me how to make it fade in and out gracefully. Right now, I'm using the very bottom JS option, which is without animation.
I found an answer via Ibu here:
How to do fade-in and fade-out with JavaScript and CSS
But I don't know how to combine it with what I already have from the first link.