Create Popup Login Form using HTML, CSS & JavaScript

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 มี.ค. 2021
  • In this video, I will show you how you can easily create popup based login form using HTML, CSS & JavaScript. You can easily create popup login form / popup sign in form / modal login form / modal sign in form with animations using css properties like opacity, transform and add show / hide functionality using JavaScript.

ความคิดเห็น • 122

  • @brainchessnovice
    @brainchessnovice 2 ปีที่แล้ว +1

    Thanks soooo much for this I've added more to my knowledge and I'm soo grateful

  • @twospartansgaming2774
    @twospartansgaming2774 3 ปีที่แล้ว +2

    Awesome bro ! You really did a nice work

  • @SebgasFlowx3
    @SebgasFlowx3 2 ปีที่แล้ว +4

    Great video bro, i'm very thankful with your tutorial,
    I have quite a question (I'm still learning web), so since the html is using the class "form" to create the froms and it's not using the element of html , is it possible to validate the fields with the class as well?

    • @Codingflag
      @Codingflag  2 ปีที่แล้ว

      No. If you are using form element then you can use html validations otherwise you need to implement it from scratch using javascript.

    • @tristanbritton8292
      @tristanbritton8292 ปีที่แล้ว

      How's it going Jonathan?
      How far along on your journey?

  • @jeremyzz
    @jeremyzz 2 ปีที่แล้ว +9

    Great video! Where can I find the source code?

  • @Kreytonchild
    @Kreytonchild 10 หลายเดือนก่อน +1

    Thank you sooo much! gonna be working on something similar for login/register.

    • @Codingflag
      @Codingflag  10 หลายเดือนก่อน

      Glad it helped!

  • @n.m4497
    @n.m4497 ปีที่แล้ว

    very useful

  • @romuloalves9349
    @romuloalves9349 3 ปีที่แล้ว +1

    Ótimo vídeo parabéns ✌.

  • @shivamkhandelwal7827
    @shivamkhandelwal7827 2 ปีที่แล้ว

    Thanks bro that was a great help

  • @funnyperson1018
    @funnyperson1018 2 ปีที่แล้ว

    thanks👍👍

  • @kingkool9298
    @kingkool9298 2 ปีที่แล้ว

    thanx this help me a lot

  • @supporttutorial
    @supporttutorial ปีที่แล้ว

    thank you sir

  • @vladislavdukhovnik8479
    @vladislavdukhovnik8479 3 หลายเดือนก่อน +2

    after reading some comments I've found the issue. There is no space between .popup and .active . Here is the correct way :
    .popup.active {
    top: 50%;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    transition: top 0ms ease-in-out 0ms,
    opacity 200ms ease-in-out 0ms,
    transform 20ms ease-in-out 0ms;
    }

  • @MohammadRezaDarvishy
    @MohammadRezaDarvishy 10 หลายเดือนก่อน

    👌

  • @juancarloscortes1664
    @juancarloscortes1664 2 ปีที่แล้ว +1

    i have a question the animation doesnt work or pop up at all

  • @daniloborreros2028
    @daniloborreros2028 ปีที่แล้ว +4

    no pop up showing even though i had no error encounter

  • @AbhishekPandey-qd7sk
    @AbhishekPandey-qd7sk 11 หลายเดือนก่อน

    Hey i love the video, which platform you are using ?

    • @Codingflag
      @Codingflag  11 หลายเดือนก่อน

      codepen online editor

  • @samannoyb
    @samannoyb 2 ปีที่แล้ว +1

    What text editor are you using?? I use Sublime Text and Visual Studio Code but yours is better.

    • @Codingflag
      @Codingflag  2 ปีที่แล้ว

      codepen

    • @acostapatrickkjj
      @acostapatrickkjj ปีที่แล้ว

      @@Codingflag hello, yo did not show how to connect the javascript to the html, hope youll notice me.

    • @kologsolomonpolpiem2364
      @kologsolomonpolpiem2364 ปีที่แล้ว

      @@Codingflag can you share the source code please, if it possible. thank you

  • @user-pi3yq8kz2w
    @user-pi3yq8kz2w 9 หลายเดือนก่อน

    is it possible to download the finished?

  • @familiar4131
    @familiar4131 2 ปีที่แล้ว +1

    Hello, I have problems on 9:04 on the video, the opacity and transform is not being recognized. I use Visual Studio Code. Thank you!

    • @Codingflag
      @Codingflag  2 ปีที่แล้ว

      Is it working properly in browser ?

    • @skayx9458
      @skayx9458 ปีที่แล้ว +2

      @@Codingflag
      is not working

  • @stefanpfadt4353
    @stefanpfadt4353 2 ปีที่แล้ว +1

    WOW! can i make the popup only appear when a specific user clicks on it, e.g. guest?

    • @Codingflag
      @Codingflag  2 ปีที่แล้ว

      For that you need to add validations

  • @brookgirma3254
    @brookgirma3254 2 ปีที่แล้ว +5

    Thanks so much for making this .
    But after 9:16 opacity and transform are not working for me

    • @Codingflag
      @Codingflag  2 ปีที่แล้ว +1

      Can you share your code on instagram so that I can check

    • @mariamsalama4442
      @mariamsalama4442 2 ปีที่แล้ว +1

      Same :"

  • @scpf2360
    @scpf2360 ปีที่แล้ว

    GREAT! I Have been praticing this! Thank You The Subscribe Button Is Much Closer

  • @sthefaniegloor4778
    @sthefaniegloor4778 ปีที่แล้ว +2

    Thank you for your video! Do you know how to center the popup in the screen? I want the popup to stay in the middle of the screen even if I scroll up/down.

    • @Codingflag
      @Codingflag  ปีที่แล้ว +1

      use position fixed

  • @mawt5468
    @mawt5468 2 ปีที่แล้ว

    Hello I have problems with the js script in your video about the pop up, as I said my Js doesn't worked and I have this error message >. Can you help me please

    • @Codingflag
      @Codingflag  2 ปีที่แล้ว

      Can you share your code in comment so that I can help

    • @elisrae2884
      @elisrae2884 2 ปีที่แล้ว

      I had the same error but it was because I forgot the . in my query selector. For example, if you gave your button an id = "add-btn" then your querySelector would be ("#add-btn) and it would be (".add-btn") if it was a class. I can't see your code, so apologies if your issue was different.

  • @KVW_Channel
    @KVW_Channel 2 ปีที่แล้ว

    Why the html code wont can't display the css in google chrome , i've already put the stylesheet code but the css won't triggered

    • @Codingflag
      @Codingflag  2 ปีที่แล้ว

      can you share your code so that I can help.

  • @foydalikontentlar4154
    @foydalikontentlar4154 2 ปีที่แล้ว +1

  • @faktaditya
    @faktaditya 2 ปีที่แล้ว +9

    Can I get the Source Code..?

  • @wongsengkuan9754
    @wongsengkuan9754 ปีที่แล้ว +3

    Hello, guys at first I encountered error when click the login button it does not pop up anything, but when I paste the javascript link at the end of body, everything is working then. Hope this comment will help those who have problems.

    • @leomess1029
      @leomess1029 ปีที่แล้ว +1

      Where is it the link

    • @leomess1029
      @leomess1029 ปีที่แล้ว +1

      What link are you talking about

  • @musaalisyabana3507
    @musaalisyabana3507 2 ปีที่แล้ว +1

    good afternoon, i like your video but i found a problem in my coding, i.e. if the button has more than one java script it only works on the first object. how to make the java script work for more than one object. I really look forward to your reply 😁

    • @Codingflag
      @Codingflag  2 ปีที่แล้ว +1

      Apply below changes so that it will add listeners on all buttons.
      HTML:
      Login
      JavaScript:
      document.querySelectorAll(".show-login").forEach(function(el, i){
      el.addEventListener("click",function(){
      document.querySelector(".popup").classList.add("active");
      });
      });

    • @musaalisyabana3507
      @musaalisyabana3507 2 ปีที่แล้ว

      thank you

    • @musaalisyabana3507
      @musaalisyabana3507 2 ปีที่แล้ว

      after I try the problem is not completely solved. the new problem is if any button is clicked it only appears on the first object

    • @Codingflag
      @Codingflag  2 ปีที่แล้ว

      can you share your code so that I can check.

  • @yossefcohenzardi6811
    @yossefcohenzardi6811 2 ปีที่แล้ว +3

    hi thank you but opacity and transform are not working

  • @mariamsalama4442
    @mariamsalama4442 2 ปีที่แล้ว +1

    Nice work 👏
    I tried it but i had problem with the popup, it didn't apear no matter what i did

    • @Codingflag
      @Codingflag  2 ปีที่แล้ว

      Can you share your code so that I can help to debug.

    • @arthurgautier7336
      @arthurgautier7336 2 ปีที่แล้ว

      @@Codingflag I got the same problem

    • @Darkest-Kn1ght
      @Darkest-Kn1ght 6 หลายเดือนก่อน

      Yup, I went ahead and watched the video a third or fourth time, and instead of trying to alter it to my requirements, I followed every line to the letter, and no popup. I've put the link to the js file in both the header and at the bottom of the body, still no popup.

  • @thewarriors6723
    @thewarriors6723 ปีที่แล้ว

    @Codingflag i really need help no matter what all i do it does not popup i will share the java script i had type pls help me debug it
    docuent.querySelector("#show-login").addEventListener("click",function(){
    document.querySelector(".popup").classList.add("active");
    });
    docuent.querySelector(".popup .close-btn").addEventListener("click", function(){
    document.querySelector(".popup").classList.remove("active");
    });
    I am using VS Code
    Thank you!

  • @SxlarSiren
    @SxlarSiren ปีที่แล้ว +1

    why is the opacity and transform deosnt work in the transition ?

    • @Codingflag
      @Codingflag  ปีที่แล้ว

      It should work .. can you paste css here so that I can help

  • @lyriccarl8796
    @lyriccarl8796 8 หลายเดือนก่อน +5

    it's not working on me😭

    • @FictionWorld_0
      @FictionWorld_0 3 หลายเดือนก่อน

      Check your button class

  • @RajanGupta-kq1bu
    @RajanGupta-kq1bu ปีที่แล้ว +1

    After the login page how the web page will pop up???

    • @Codingflag
      @Codingflag  ปีที่แล้ว

      Either you need to provide login button to open popup when its clicked or you can open popup automatically once page is loaded.

  • @2kgamer368
    @2kgamer368 2 ปีที่แล้ว

    my javascript is not working....do I need to add some script link?

    • @Codingflag
      @Codingflag  2 ปีที่แล้ว

      No. Any error on console? Message your code on instagram so that I can check.
      instagram.com/codingflag

  • @mirzaaliyafie6030
    @mirzaaliyafie6030 ปีที่แล้ว +4

    for those of you who get an error where the login form doesn't appear, in the js script add the hashtag # in front of show-login like this :
    document.querySelector("#show-login").addEventListener("click",function(){
    document.querySelector(".popup").classList.add("active");
    });
    then your login form will popup

    • @akas02
      @akas02 ปีที่แล้ว

      it's not working, pls help

    • @agentsmith849
      @agentsmith849 ปีที่แล้ว

      still not working.

  • @saymuslims
    @saymuslims 6 หลายเดือนก่อน

    Bro how to conect css to html its not conecting why

  • @nikethn3548
    @nikethn3548 2 ปีที่แล้ว

    i am not able to open the popup screen when i click

    • @Codingflag
      @Codingflag  2 ปีที่แล้ว

      Can you share your code here so that I can help.

  • @sushmavundeti1733
    @sushmavundeti1733 ปีที่แล้ว

    Hi. Can u pls help me..
    When I'm clicking on the login button the login page is not showing

    • @wongsengkuan9754
      @wongsengkuan9754 ปีที่แล้ว

      me too

    • @Codingflag
      @Codingflag  ปีที่แล้ว +1

      can you share your code so that I can help to debug.

    • @sushmavundeti1733
      @sushmavundeti1733 ปีที่แล้ว

      @@Codingflag how shld I send?

    • @Codingflag
      @Codingflag  ปีที่แล้ว

      There are couple of spelling mistakes ..
      CSS -
      1) "transform" instead of "tranform"
      2) There is no space between .popup.active
      (It should not be like .popup .active )
      JavaScript -
      3) Spelling of addEventListener is wrong.
      Please correct it & let me know still you are facing any issues.

    • @sushmavundeti1733
      @sushmavundeti1733 ปีที่แล้ว

      @@Codingflag kk tqq i will try once again

  • @coder8731
    @coder8731 ปีที่แล้ว

    Hello the Javascript part is not working. Please help

    • @Codingflag
      @Codingflag  ปีที่แล้ว

      Can you share your code so that I can help to debug.

  • @purisuuu7431
    @purisuuu7431 หลายเดือนก่อน

    can someone help me, the javascript didnt work im using vscode

    • @Codingflag
      @Codingflag  หลายเดือนก่อน

      any error on console?

  • @sameermysterio1092
    @sameermysterio1092 2 ปีที่แล้ว

    the button is not working, i gave it the same id but doesnt work

    • @Codingflag
      @Codingflag  2 ปีที่แล้ว

      Can you share your code so that I can help

    • @sameermysterio1092
      @sameermysterio1092 2 ปีที่แล้ว

      @@Codingflag where should i give uh the code

    • @Codingflag
      @Codingflag  2 ปีที่แล้ว

      upload it on codepen or github and share link here.

    • @sameermysterio1092
      @sameermysterio1092 2 ปีที่แล้ว

      @@Codingflag i need it fixed , do check it quick

  • @jtzstng
    @jtzstng ปีที่แล้ว

    Why does mine pop out only for like 0.1sec? I copied everything in the video

    • @widya2550
      @widya2550 ปีที่แล้ว

      if you using instead of button, add "href=#" on your attribute, mine works well

  • @sajalib8531
    @sajalib8531 2 ปีที่แล้ว

    my javascript is not working , how can i fix it please ?

    • @Codingflag
      @Codingflag  2 ปีที่แล้ว

      Can you share your code so that I can help.

    • @sajalib8531
      @sajalib8531 2 ปีที่แล้ว +1

      @@Codingflag
      i did

  • @ggukscarrots722
    @ggukscarrots722 ปีที่แล้ว

    helppppp, the popup wouldn't show T^T

  • @sabeeli7814
    @sabeeli7814 2 ปีที่แล้ว +1

    Whats the mistake here?
    document.querySelector("#show-login").addEventListener("click",function(){
    document.querySelector(".popup").classList.add("active");
    });
    document.querySelector(".popup .close-btn").addEventListener("click",function(){
    document.querySelector(".popup").classList.remove("active");
    });

    • @Codingflag
      @Codingflag  2 ปีที่แล้ว +2

      There is no mistake. Can you share entire code so that I can help to debug.

    • @sabeeli7814
      @sabeeli7814 2 ปีที่แล้ว +2

      @@Codingflag it's working now, I had to put down before the ending tag of body.

    • @sameermysterio1092
      @sameermysterio1092 2 ปีที่แล้ว

      @@sabeeli7814 meaning?

    • @Codingflag
      @Codingflag  2 ปีที่แล้ว

      You need to put script tag at the end of body tag so that querySelector will have access to rendered DOM elements.

    • @sabeeli7814
      @sabeeli7814 2 ปีที่แล้ว

      @@sameermysterio1092 I put script tags before the ending tag of body . I hope you got it now.

  • @smrutiranisahoo2790
    @smrutiranisahoo2790 11 หลายเดือนก่อน +2

    Ye video falutu hai working nahi karata hai active

  • @deveshkumar726
    @deveshkumar726 ปีที่แล้ว

    Where is active class in html page

    • @Codingflag
      @Codingflag  ปีที่แล้ว

      Its added dynamically using javascript

    • @deveshkumar726
      @deveshkumar726 ปีที่แล้ว

      @@Codingflag oo thanku but my script didn't work

    • @Codingflag
      @Codingflag  ปีที่แล้ว

      can you share your code so that I can help

  • @florenciaoplenia431
    @florenciaoplenia431 2 ปีที่แล้ว

    how to fix the javascript is not working??

  • @eshanshah3445
    @eshanshah3445 ปีที่แล้ว

    not working sir your code

    • @Codingflag
      @Codingflag  ปีที่แล้ว

      What error you are getting ?

  • @user-cz1jd8wb2z
    @user-cz1jd8wb2z 4 หลายเดือนก่อน

    source code

  • @agentsmith849
    @agentsmith849 ปีที่แล้ว

    This doesn't work. It doesn't pop up.

  • @psg7421
    @psg7421 หลายเดือนก่อน

    when i click login the popup doesn't open please help
    iam using laravel

    • @Codingflag
      @Codingflag  หลายเดือนก่อน

      Any error on console after you click on button?