I’m trying to make a loading screen and was wondering if this code would work?

@monumentalstudios1
This is just the part to close the LIGHTBOX.
The opening part should be in your page-code-section.

Or your opening-part is AUTO-LOADED (settep-up in the wix-ui to → “auto-load”.
Take a look onto “Lightbox-Options”.