Simple Vanilla JS Solution for Modal overlay

Simple JS solution creating a modal control and overlay.

View solution

Requested feedback

A very quick approach to render a single modal overlay. I would tidy it up or use a better approach i.e. class constructor, if I had more time. I would like some feedback on code quality and how I could simplify it more.

Comments

You must be signed in to post a comment

Get future questions delivered straight to your inbox for free

Sign up and receive instant access to new questions when we publish them.

We‘ll only use your information to deliver new questions and to provide you updates about our product. We‘ll never spam you or sell your information without your consent. Unsubscribe at any time.