Transparent Login Form with floating Placeholder Text - Pure CSS Label Slide Up on Focus - No jQuery

Поділитися
Вставка
  • Опубліковано 30 вер 2024
  • Enroll My Course : Next Level CSS Animation and Hover Effects
    www.udemy.com/...
    Another Course : Build Complete Real World Responsive Websites from Scratch
    www.udemy.com/...
    ------------------
    Join Our Channel Membership And Get Source Code Everyday
    Join : / @onlinetutorialsyt
    ------------------
    Source Code : / source-code-form-36809303
    ------------------
    Please LIKE our Facebook page for daily updates...
    / online-tutorial-html-c...

КОМЕНТАРІ • 357

  • @OnlineTutorialsYT
    @OnlineTutorialsYT  4 роки тому +10

    Source Code : www.patreon.com/posts/source-code-form-36809303

    • @vishalsadhnani1042
      @vishalsadhnani1042 3 роки тому

      cant i get the source code for free

    • @mikethegamedev
      @mikethegamedev 3 роки тому

      @@vishalsadhnani1042 then type yourself then

    • @Kinrinsalem
      @Kinrinsalem 2 роки тому

      MikeTheGameDev bro why?

    • @pepi8433
      @pepi8433 2 роки тому

      @@vishalsadhnani1042 no, idiot, code aint freer... what u think this is?

    • @pepi8433
      @pepi8433 2 роки тому

      @@mikethegamedev yea, hear this idiot? "Can't I get the source code for free"? lol

  • @remdem622
    @remdem622 6 років тому +157

    here is the code guys! :

    Input From UI Design


    Login

    username

    password


    CSS:
    body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background: url(file name);
    background-size: cover;
    }
    .box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    padding: 40px;
    background: rgba(0,0,0,.8);
    box-sizing: border-box;
    box-shadow: 0 15px 25px rgba(0,0,0,.5);
    border-radius: 10px;
    .box h2 {
    margin: 0 0 30px;
    padding: 0;
    color: #fff;
    color: darkseagreen;
    text-align: center;
    }
    .box .inputBox {
    position: relative;
    }
    .box .inputBox input {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    color: #fff;
    margin-bottom: 30px;
    border: none;
    border-bottom: 1px solid #fff;
    outline: none;
    background: transparent;
    }
    .box .inputBox label {
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px 0;
    font-size: 16px;
    color: #fff;
    pointer-events: none;
    transition: .5s;
    }
    .box .inputBox input:focus ~ label,
    .box .inputBox input:valid ~ label {
    top: -20px;
    left: 0;
    color: #03a9f4;
    font-size: 12px;
    }
    .box input[type="submit"] {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    background: #03a9f4;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    }
    note: i have some things colored in too!

    • @_https
      @_https 6 років тому +1

      I love you

    • @remdem622
      @remdem622 6 років тому +3

      +Just Coding thanks! glad I helped!

    • @granitrahmani926
      @granitrahmani926 6 років тому +1

      ich liebe dich

    • @Mycl0uds
      @Mycl0uds 6 років тому +1

      Thank you So Much

    • @remdem622
      @remdem622 6 років тому +2

      + Granit Rahmani Ich bin sehr froh, dass ich geholfen habe

  • @Jewish5783
    @Jewish5783 5 років тому +7

    Whenever i see things like these...am just thrilled and excited. What a joy programming brings!

  • @saulosouza5494
    @saulosouza5494 5 років тому +16

    That works perfectly. Thanks from Brazil.

  • @FahadKhan-lw2pp
    @FahadKhan-lw2pp 5 років тому +9

    There is a problem
    That section where you use
    .box .inputbox input:valid ~label

    • @abooodkns8301
      @abooodkns8301 4 роки тому

      me too

    • @ivanvalleri9898
      @ivanvalleri9898 4 роки тому +1

      With "email" type, doesn't work. Did you know any method for do it work properly?

    • @Moodboard39
      @Moodboard39 2 роки тому

      @@ivanvalleri9898 ya probably doing it wrong

  • @MohdAsif-mz8vx
    @MohdAsif-mz8vx 5 років тому +1

    Amazing coding

  • @OnlineTutorialsYT
    @OnlineTutorialsYT  6 років тому +13

    please like and share this video...
    and also SUBSCRIBE my channel for daily new video...and don't forget to press the bell icon for daily notification

    • @Doms.s
      @Doms.s 6 років тому +1

      but sir how to link the Submit text into another html?

    • @Sm.khalidh
      @Sm.khalidh 6 років тому

      Can u send me the code repo please.. it is very helpful to understand.

    • @shyamjaiswal04
      @shyamjaiswal04 5 років тому +1

      Will you please share the code

    • @abrahamedwinbeensromero5747
      @abrahamedwinbeensromero5747 5 років тому

      Nice video, i dont get why transform -50% works to center instead of back to initial position. Thank you if u can answer

    • @tanujkkumar5679
      @tanujkkumar5679 5 років тому

      Give me coding

  • @jefjean
    @jefjean 4 роки тому +3

    Nossa, muito bacana 👏👏👏
    Poderia fazer a parte 2
    Abrindo outra tela que tenha alguma coisa

  • @AngelGarcia_103
    @AngelGarcia_103 4 роки тому +7

    I listen to the background music, depression increases

  • @tiefsoftwarelab
    @tiefsoftwarelab 4 роки тому +1

    2020 bro

  • @nikolamatic2287
    @nikolamatic2287 5 років тому

    I am missing background file!
    Input Form UI Design
    body
    {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background: url(bg.jpg) no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    }
    .box
    {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 400px;
    padding: 40px;
    background: rgba(0,0,0,.8);
    box-sizing: border-box;
    box-shadow: 0 15px 25px rgba(0,0,0,.5);
    border-radius: 10px;
    }
    .box h2
    {
    margin: 0 0 30px;
    padding: 0;
    color: #fff;
    text-align: center;
    }
    .box .inputBox
    {
    position: relative;
    }
    .box .inputBox input
    {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    color: #fff;
    letter-spacing: 1px;
    margin-bottom: 30px;
    border: none;
    border-bottom: 1px solid #fff;
    outline: none;
    background: transparent;
    }
    .box .inputBox label
    {
    position: absolute;
    top: 0;
    left: 0;
    letter-spacing: 1px;
    padding: 10px 0;
    font-size: 16px;
    color: #fff;
    pointer-events: none;
    transition: .5s;
    }
    .box .inputBox input:focus ~ label,
    .box .inputBox input:valid ~ label
    {
    top: -18px;
    left: 0;
    color: #03a9f4;
    font-size: 12px;
    }
    .box input[type="submit"]
    {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    background: #03a9f4;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    }
    Login
    Username
    Password

  • @zieryreis6663
    @zieryreis6663 Рік тому +1

    essa forma de centralizar a caixa utilizando o "tranform: translate" eu não sabia. Sensacional!

  • @sanketdhumal4538
    @sanketdhumal4538 5 років тому +1

    mera background image nhi hoo rha upload aur submit button pr 'hand' jaisa pointer bhi nhi aa rha.... kya kru... plz batao na...

  • @alexandra-dianastoica4970
    @alexandra-dianastoica4970 5 років тому +2

    song: Crypttic Sorrow-Meditation & Relaxation & Healing Music

  • @sanjushaikh
    @sanjushaikh 6 років тому +1

    Hello Online Tutorials please yahi same aspx page k liye muje pata nahi chala to plz uski 1 video bana sakte hai

  • @dimaso3830
    @dimaso3830 3 роки тому

    What's fucking track!?
    When I see this video, I want to sleep.

  • @AlexSandro-te9ci
    @AlexSandro-te9ci 5 років тому +3

    Muito obrigado, aprendi mais uma agora. Ótimo para usar esses efeitos.

  • @waqasy4431
    @waqasy4431 Рік тому

    Css me .inputbox label me
    Positions: absolute
    Krny sy label simat kr box ky uper chaly gaye hai

  • @sirekay4292
    @sirekay4292 5 років тому +1

    Nice video, but why do you have to give wrong codes in the app 😡
    Spent a lot of time figuring what was wrong till i noticed they were wrong codes

  • @multiengineer9199
    @multiengineer9199 4 роки тому

    Which software he is using? Anyone Please

  • @parththakkar6401
    @parththakkar6401 3 роки тому

    Bro css vale coding me bg.jpg picture kese dala

  • @CHITUS
    @CHITUS 2 роки тому

    This code executes to perfection! Thank you! Quite a few other sites ,s=who offer the same video- wasted my time...THIS WORKED BEUTIFULLY! THANK YOU GUYS!️

  • @ishikamittal3632
    @ishikamittal3632 4 роки тому

    Plz tell how can I use list box in this. I am unable to do that.. Plz help..

  • @el_teodoro
    @el_teodoro 4 роки тому +1

    I didn't even notice this was a tutorial, I let youtube autoplay songs... lmao

  • @davidmartinezdasilva
    @davidmartinezdasilva 5 років тому +2

    Thank you, bro! Do you think this code will work perfectly in responsible web sites?

  • @hashirhaider5472
    @hashirhaider5472 4 роки тому

    will you please this coding please i need urgent

  • @ramonemmiel
    @ramonemmiel 3 роки тому

    Why is my box not at the center

  • @virenbhanushali9282
    @virenbhanushali9282 6 років тому +3

    U forgot to show the validation process

  • @SAGskills
    @SAGskills 4 роки тому

    Hi sir
    Before u make a glowing div with linear gradient
    But if we dont want give body background color and just want to give color the parent div its not working
    Please make a video on it how.we can make.glowing box without any body css.
    Just i want a outer div with height 400px and widt 1000px. Inside this div i want a div width 400px and height 300px.
    So i want glowing linear gradient at inside dive how i can??
    I cant change my body css coding

  • @divyangbargali1554
    @divyangbargali1554 3 роки тому

    I like the music more than the video

  • @actorpus
    @actorpus 4 роки тому +2

    reminds me of something I've seen before...

    • @gasparfreak
      @gasparfreak 4 роки тому

      Reminds me of material design from google, but less bloated, and far easy to customize.

  • @mathtutorph5718
    @mathtutorph5718 3 роки тому

    I'm confused on the box-sizing property

  • @devPbiswas
    @devPbiswas 3 роки тому

    He had to add placeholder, it would be easier

  • @fizatariq9398
    @fizatariq9398 4 роки тому

    Thank You Soooo Much For Your Video...It Helped Me A Lot Today... Now I Am Able To Submit My Assignmet With Satisfaction....

  • @StyleViewStudio
    @StyleViewStudio 3 роки тому

    This code executes to perfection! Thank you! Quite a few other sites ,s=who offer the same video- wasted my time...THIS WORKED BEUTIFULLY! THANK YOU GUYS!❤️

  • @kyleHunter1986
    @kyleHunter1986 3 роки тому

    This music makes me want to sleep

  • @RezHimself
    @RezHimself 4 роки тому

    Thanks a lot my indian friend

  • @alexandrerohban128
    @alexandrerohban128 4 роки тому

    link of the picture please

  • @sssrigoku
    @sssrigoku 4 роки тому

    Thank you for the video

  • @Ritesh_18
    @Ritesh_18 5 років тому

    code da do na dost

  • @mdkhorshed2043
    @mdkhorshed2043 3 роки тому

    Thay was Awesome... 🤟🤟💥💥

  • @smileyakhi165
    @smileyakhi165 4 роки тому

    Sir plz provide source code

  • @Jihed
    @Jihed 5 років тому +1

    I am trying to make this from work on my react projects but this (.box .inputbox input: valid ~label ) doesn't make the floating label work!

    • @ashleypontay681
      @ashleypontay681 5 років тому

      It’s your own problem bro. Try to debug it. 🙂

    • @Jihed
      @Jihed 5 років тому

      @@ashleypontay681 i already did that , and your reply did not help me or help anyone else :)

  • @rittwickbhabak7348
    @rittwickbhabak7348 2 роки тому

    Awesome tutorial

  • @tasyarevantara3808
    @tasyarevantara3808 5 років тому +2

    Mau download

  • @scpf2360
    @scpf2360 Рік тому

    Him: "Pure CSS"
    HTML: 👁👄👁

  • @archanadurgam3711
    @archanadurgam3711 4 роки тому

    Validation in js please

  • @SohelRana-wi5kt
    @SohelRana-wi5kt 2 роки тому

    Excellent tutorial

  • @betoayza6620
    @betoayza6620 5 років тому +1

    So sad music! XD Don't have the code in txt?!

  • @DeveloperDuniya
    @DeveloperDuniya 4 роки тому

    bro can you make the video for animated caption image slider ?

  • @我就是喜欢你看不-l4z
    @我就是喜欢你看不-l4z 4 роки тому

    666

  • @zx9269
    @zx9269 5 років тому

    make video with voice

  • @reksmeyok1957
    @reksmeyok1957 6 років тому +6

    Thank for your great login video

  • @jahangirakbar4524
    @jahangirakbar4524 4 роки тому

    Great Video... Love and support from Pakistan 😍 🇵🇰

  • @bloodshotgamingff
    @bloodshotgamingff 4 роки тому

    How to connect database

  • @kaixie4597
    @kaixie4597 6 років тому +4

    .box .inputBox input:focus ~ label,
    .box .inputBox input:valid ~ label
    not working

    • @kiransahu157
      @kiransahu157 6 років тому

      keep label tag below the input type.

    • @tahmidzaman6675
      @tahmidzaman6675 5 років тому

      Kiran Sahu why keeping it before input doesn't work?

    • @AndreasDirscherl87
      @AndreasDirscherl87 5 років тому

      @@tahmidzaman6675 If you use it before the input, you need the css z-index=9 (or any greater number) for your label...

    • @JOHNAGAINANAGAIN
      @JOHNAGAINANAGAIN 5 років тому

      +

    • @asmamehmood2387
      @asmamehmood2387 5 років тому

      Yes

  • @smileyakhi165
    @smileyakhi165 4 роки тому

    Is it responsive??

  • @ducpham9991
    @ducpham9991 5 років тому

    sorry, but i don't understand why you code border:0; border: ...;. so what does first code mean? thanks!

  • @sandeshkatti7621
    @sandeshkatti7621 4 роки тому

    I what u are writing

  • @abhishekkumardeveloper
    @abhishekkumardeveloper Рік тому

    Which music is this?

  • @alexxkzz9312
    @alexxkzz9312 3 роки тому

    use bootstrap bro

  • @youdhistirdas2125
    @youdhistirdas2125 4 роки тому

    Bro great vids keep it up it helps a lot.
    Bro pls tell my box size is not working code as follows :
    box-sizing: border-box;

  • @chinni49
    @chinni49 4 роки тому

    give me that code

  • @vkrdiaphony1755
    @vkrdiaphony1755 3 роки тому

    ME SALVASTE LA VIDA BRO

  • @michaelriquelmemillapan3691
    @michaelriquelmemillapan3691 5 років тому

    Background image con cover 100% ancho y alto... un div con bg negro con transparencia y centrado con margin auto o flex y dentro sus respectivos hs y input... ????

  • @jayparmar7603
    @jayparmar7603 3 роки тому

    Professional

  • @corycahyati8217
    @corycahyati8217 3 роки тому

    thanks you

  • @SIlentZedrikMusic
    @SIlentZedrikMusic 5 років тому

    I want to design a website without JAVA "YET". I don't want my brain to bleed lol.

  • @abirbenaissa3717
    @abirbenaissa3717 4 роки тому

    God bless you

  • @b332159713
    @b332159713 4 роки тому

    i want bg file

  • @in2rythem
    @in2rythem 3 роки тому

    Speak ffs

  • @StyleViewStudio
    @StyleViewStudio 3 роки тому

    Your code works perfectly....
    However - since I am such a 'nubie' in coding - I always have a problem uploading a video background - and even the images that I use - never go full background cover. Always on one end of the page ...(drives me nuts...).Any helpful hints?

    • @ohiwantyoutobelieve
      @ohiwantyoutobelieve 3 роки тому

      try background-size: cover; y background-repeat: no-repeat;

  • @galisurendra6397
    @galisurendra6397 4 роки тому

    super sir

  • @lars2299
    @lars2299 3 роки тому

    userame

  • @paristar3079
    @paristar3079 5 років тому

    Awesome

  • @dev10shah
    @dev10shah 4 роки тому

    Awesome But can you tell us how to make a working login system plz. plz. help

  • @syediqbalahmed3176
    @syediqbalahmed3176 5 років тому

    *_Nice_*

  • @unnatisolanki3570
    @unnatisolanki3570 5 років тому +2

    Sir how to connect database connectivity

  • @priteshvegad9231
    @priteshvegad9231 4 роки тому

    nice workkkk..........thank you share inspirational video

  • @VivekPatilKudgaon
    @VivekPatilKudgaon 4 роки тому

    Which software you use for coding ?

  • @mousamgangrade
    @mousamgangrade 4 роки тому

    Many of my css commands are not recognised by the brackets and by the browser too.
    Can anyone help me out please..

  • @kumaresha3348
    @kumaresha3348 6 років тому

    Can the text made in 180 degree? If available, please send howvtovdo in html css & jquery.

  • @valentinstefanov1502
    @valentinstefanov1502 4 роки тому +1

    This is the song if someone ask
    I
    I
    \/
    Cryptic Sorrow - Atlantean Twilight ~ Kevin MacLeod
    Thx for the video i like it and the music too you have good taste

  • @strahinjanikolic8086
    @strahinjanikolic8086 5 років тому +1

    How can i moving the submit box on the center?

    • @manishanandaniya6
      @manishanandaniya6 5 років тому

      .box input [type="submit"] {margin-left: 100px; }

  • @waqasy4431
    @waqasy4431 Рік тому

    Sir aik problem a rahi hai

  • @pawarasiriwardhane7755
    @pawarasiriwardhane7755 4 роки тому

    excellent video. Thank you very much

  • @VictorSilvaDev
    @VictorSilvaDev 4 роки тому

    Muiti bom

  • @denilsonantonio8037
    @denilsonantonio8037 4 роки тому

    Parabens

  • @diegodii3935
    @diegodii3935 4 роки тому

    obrigado

  • @बहकतीकलम
    @बहकतीकलम 6 років тому

    Pointer-events: none; not working and my first text box text trasnsition continues. What I do

  • @DcodeShow
    @DcodeShow 4 роки тому

    God bless you dude you are a great developer

  • @hannaberyhvac2980
    @hannaberyhvac2980 5 років тому

    The beginning of video shows the bottom border turning blue on focus, but not at the end, and its not shown in your code!

  • @Yazen.hamdan9
    @Yazen.hamdan9 3 роки тому

    thank u a lot sir , u help me in my final project in my collage with this perfect design

  • @hungnguyenvan4096
    @hungnguyenvan4096 5 років тому

    you have cat put link github to convenient to follow

  • @angladephil
    @angladephil 6 років тому

    Well, it's just playing around with a bunch of ccs attributes, until you get the result you want. Nothing interesting in this.

  • @CaptianTristian
    @CaptianTristian 5 років тому

    can someone help me im trying to link to the sumbit buttom to a page but its not working

  • @mohammedhussein7272
    @mohammedhussein7272 5 років тому +1

    Thanks from Iraq

  • @smileyakhi165
    @smileyakhi165 4 роки тому

    Sir can you make it in angular plz??

  • @chiragsupal4483
    @chiragsupal4483 4 роки тому

    keep it up bro.. amazing video

  • @bouyahioussema2412
    @bouyahioussema2412 5 років тому

    i have problem all the labels didn't appear