How to Code a Modal with Vanilla JavaScript

preview_player
Показать описание

====================

I'm back with my next installment of the Let's Build: With JavaScript series. If you're new to the series, I'm building common components used on the web today with HTML, CSS, and Vanilla JavaScript.

This is both an exercise for myself and a "show and tell" of how you can accomplish things you might have onced used frameworks like jQuery for with vanilla JavaScript.

This build focuses on coding a accessible modal using styles from Tailwind and our own custom JavaScript. Key features of the modal are to open and close as well as close the modal by clicking outside the main dialog window container element.

====================

💻 Previously published at:

💻 Check out the blog:

🔭 Check out my app:

💡 👫 Check out my agency:

🦄 Check out my personal site:

🚀 Links:

📘Check out my book on UX Design:
"LUXD: Learn User Experience Design"

📙 Check out my FREE book on Tumblr Theming:
"Pro Tumblr Theming"

💯 Need awesome web hosting? Check out cloudways. They allow me to use a variety of hosting providers and build apps with ease:

🌊 Need more advanced hosting for Rails, PHP, Node, or other projects? Digital Ocean has you covered.

☕️ 🙏🏻 Patreon

☕️ Or buy me a coffee
Рекомендации по теме
Комментарии
Автор

Great video, ty! Do u happen to have a tutorial on to use native Java Script for an "automatic" modal to be kicked off on page load (with original web page still in background)? Thank you!

charlieb.
Автор

hey wow your new video nice and i am doing better and better with your videos they are really good and hoping that very soon you will come up with new rails project.
thanks for the video...dear

chinmayanand
Автор

You mistyped the function "fireWhenReady" when you call it twice right at the end of your JS file.

RodrigoMendoza