Create a Modal (Popup) with HTML/CSS and JavaScript

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

In this tutorial, we're going to learn how to build a #Modal / #Popup using HTML, CSS, and a little bit of #JavaScript to toggle a class.

---
Follow me on:
Рекомендации по теме
Комментарии
Автор

I was really struggling with creating a Modal of my own. I was tangled in min-height, max-height. Could not even center the Wrapper div. Great video. Position fixed made a perspective a little clearer. Thank You.❤

chiragjain
Автор

wow, watched too many videos abuse youtube's 10min rule, it feels awesome to see something beautiful made in this time, thanks

zaka
Автор

Taking a front end class in masters, you just saved my assignment. deserve a subscribe. :)

SocialIntrovert
Автор

Well done, Florin. I actually like this kind of mini-js projects. It helps me to grasp how DOM JS works.

abdifatahmoh
Автор

This is one of the best modal tutorials I've tried and the first one to actually help me implement it into my site! Thank you!

KirkMitchelllelouprouge
Автор

short concise and crisp. Exactly what I wanted. Thank you

devtest
Автор

Thanks a lot!
I was struggling with popup modal you gave me the basic idea to execute what i was planning, It helped me a lot

hemantnimble
Автор

for everyone that is asking why the button can't click nor open the modal, i wanna know if u guys r using <script></script> or no. if yes then u have to place it in <body> not in <head>. it works for me.

willnovan
Автор

Your tutorial is awesome!!!! It is simple, straightforward and kind of easy to follow. Please keep up your good work.

letrantuantai
Автор

I think I'm addicted to the sound effects at the beginning of your videos. So digital! 😀👍

kettenbach
Автор

I feel like this sounds silly but it would be a great help to have a copy of the code. When i set pointer-events to none i still can't click the button 7:12 . Also can't figure out why my 'click me please' button centered horizontally. Either way thank you for posting!

nickapeed
Автор

Struggling with modals. But yours works fine. Thanks

OyiboVFX
Автор

Wow, I love this waiting for more like this.
I have learned something new like *pointer-event* how this works.
Thank you And *must always use JS in your every Tutorial.*

iUmerFarooq
Автор

Appreciate you
Helped me solve an issue

kojoarhin
Автор

Hey Florin!
Great video, as always. Love the way you quickly explain every step.
One doubt.. could/or does it make sense to use classList.toggle instead of the .remove & .add?

ricardodesirat
Автор

I am glad to have found your page coz I get to learn awesome stuffs with your easy-to-comprehend-tutorials.
You're really good. Thanks for sharing such wonderful tutorials.

tenc
Автор

Thank you so much that was very helpful !

jafartouzeau
Автор

Excellent tutorial! Short, sweet, and to the point -- and it WORKED!! Thank you!

KyleBondo
Автор

the best modal js video i have ever seen, thanks for share with us.

BlueMoises
Автор

superb explaination ! Simple n easy ! Learnt a lot in short time . Thank you florin .

kbhargavi