Input Animations with HTML and CSS | Input Label Animation

Поділитися
Вставка
  • Опубліковано 30 лис 2024

КОМЕНТАРІ • 127

  • @juresrovin4174
    @juresrovin4174 2 роки тому +27

    I’m terrified of css. Instead of watching horror movies I watch videos like this where it takes 80 lines of css to implement “simple” input field animation. Props to the instructor 👏🏻.

  • @cbennder3877
    @cbennder3877 2 роки тому +1

    Best solution from all "float label" videos on UA-cam. Thank you.😊

  • @DarkSolidity
    @DarkSolidity 2 роки тому +1

    This is design looks so clean! When adding invalidation to this it will look so responsive.

  • @DarkSolidity
    @DarkSolidity 2 роки тому +2

    So I added this design to my project and it looks amazing!! I also added form invalidation events, the borders now display in red when the user has an invalid input. It’s so clean, compact and responsive!

  • @foupax
    @foupax 3 роки тому +6

    The other Day I was filling a form with exactly this kind of animation. And now you provide a way to achieve this. That's Great. 👏👏👏

  • @7daysinSunnyJune
    @7daysinSunnyJune Рік тому

    very good stuff Angela! Thanks for the great explanation!

  • @greykor140
    @greykor140 3 місяці тому

    Absolutely an amazing video! Super helpful! Thank you so much for making this!

  • @mingirc
    @mingirc 2 роки тому +1

    Thank you so much. Perfectly explained, mind-blowing and sure concise. I am so glad to came across with your video. I will be sure about subscribing your channel.

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

    I was looking for these kind of input style for past 2-3 months and i was tired of jquery solutions. This has really helped me a lot. thanks a ton

  • @Aayush-yr1df
    @Aayush-yr1df 2 роки тому +3

    Thanks a lot, it's extremely helpful , I didn't knew that we could achieve such kind of animation by just using CSS . Without using any Javascript You showed how to achieve it.

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

    Congrat on passing the 10000 subscribers mark, I definitely need to learn Sass.

    • @angeladesign737
      @angeladesign737  3 роки тому +1

      Thank you! Sass is awesome, I use it all the time now

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

    Thank u for being a great human being and taking ti to help all of us noobs out cheers

  • @kalyankumar8597
    @kalyankumar8597 3 роки тому +2

    THat was really helpful, One thing I spotted is ---> don't you think form__input:not(:focus) is a redundant check, I think just using
    .form__input:not(:placeholder-shown) would do!!

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

      You are right, good call!

    • @greykor140
      @greykor140 3 місяці тому

      Helpful! I was wondering why we needed the not focus too! Thank you!

  • @chid_iinma
    @chid_iinma 2 роки тому +1

    Thank you for this tutorial.
    It was really helpful

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

    Awesome... this was clear and right to the point. great demo

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

    Woah mam, you are at another level u know elements and their uses

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

    What a detailed and clear explanation! I loved it

  • @josue-cedeno
    @josue-cedeno 3 роки тому +1

    Perfect! I was just working on this idea. Thank you!

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

    Thank You. Helped me greatly in one of my Projects

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

    She explains very nicely... keep on dear.. add more and more videos

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

    Wow. The solve for my problem is here in this video. Thanks! I hope you got 1million suscribers

  • @devdev1464
    @devdev1464 2 роки тому +1

    Hey! So I have done this, but the :not(:focus) & :not(:placeholder-shown) part seem not to work. I even typed the code exactly like you wrote it.

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

      Hey, me too. You have already done? Can you help me?

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

    This is fuk*ng awesome) I was looking for such a solution for my input but your variant is even better than I wanted it to be)

  • @salmanfarshisajib6512
    @salmanfarshisajib6512 2 роки тому +1

    You can use background transparent instead of background none. Very helpful video❤

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

    you helped me a lot, thanks for tutorial

  • @AvinashKumar-ww9xz
    @AvinashKumar-ww9xz 2 роки тому

    thank you i learned exactly what i want

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

    You're awesome Angela, thanks a lot for this nice tut 🙌🏽☺️☮️🎊

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

    Simply , I love it! thanks a lot!!

  • @EduardoSecondo
    @EduardoSecondo 2 роки тому +2

    That way I find it easier than using "placeholder"
    === CSS ===
    label {
    position: absolute;
    font-size: 0.8rem;
    left: 10px;
    top: 0%;
    color: #bababa;
    transform: translateY(50%);
    transition: all 0.15s ease;
    pointer-events: none;
    }
    input:focus ~ label,
    input:not([value=""]) ~ label {
    top: -50%;
    }

  • @tomaszklekner9879
    @tomaszklekner9879 2 роки тому +3

    Hi Angela
    This is an amazing tutorial, thank you very much for your work. You got yourself a new subscriber :D
    I think I can optimise one CSS selector:
    .form__input:not(:placeholder-shown):not(:focus) ~ .form__label
    This way you drop the .form__input class duplication and I think it still works as expected :)

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

    Thanks, i have always wanted to know this. at last i have, thanks to you

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

    Thanks a lot, I was finding exactly that kind of input animation.. 💝

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

    Thank you sir....
    Very helpful video.

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

    Thanks a lot for sharing your expertise!!! I am rookie and I learn a lot from valuable contents like yours.

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

    Is there a reason you used a div.form instead of form.form and an input type of text vs input type email ?

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

    Awesome tutorial

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

    you are an awesome teacher :)

  • @asmix7328
    @asmix7328 3 роки тому +1

    That's cool! Thank you for the video) Only now it turned out, everything was clearly explained. I understand you, even if I don't know much English))

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

    Great explanation!

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

    Fabulous Tutorial

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

    Great work mam🤩

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

    so easy. thank you sooo much. i would've installed a framework just for this.

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

    Thank you Angela

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

    Superb, thanks.

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

    Great Work

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

    Ofcourse the :not pseudo class🤦🏾‍♂️, I wouldn't even have thought of it. I was just missing that part only, this really helped.

  • @dhruvvarshney1040
    @dhruvvarshney1040 3 роки тому +1

    this is awesome

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

    Hey dear,
    just a doubt pushed into me
    instead of .form__input:not(:placeholder-shown).form__input:not(:focus) ~ .form__label
    can we use .form__input:valid for this
    please solve this as it is tricking me.

  • @vortex3915
    @vortex3915 2 роки тому +1

    why not just use the form element at 0:40?

  • @sohibabduganiyev3508
    @sohibabduganiyev3508 2 роки тому +1

    THANK YOOOOOOOU

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

    Helped me, Thanks!!

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

    Thank you love your tutorial !!

  • @antons7210
    @antons7210 3 роки тому +1

    Fantastic solution to one of the most common mistakes people make with forms. You use placeholders instead of labels because it simply looks better. The problem is that from a UX perspective, that is a mistake because the placeholder disappears when you click on the input. This way you can have both the looks and experience :)

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

    That's awesome.

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

    Great content, thank you!

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

    Great Video, but how can I fix that if I click on the Label itself that the input gets selected? Currently if I can only select the input field if I click everywhere else than the label.
    Thanks

  • @NileshDadheech
    @NileshDadheech 3 роки тому +1

    Amazing sis 💓😊👍

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

    If this html compiler is free on internet then please give or provide the path to go through this compiler.

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

    Thanks Angela 👍

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

    how to handle label animation in dropdown selection box ??

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

    Great content, thank you so much!

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

    Hi! With just one input works but when you add more it fails overlapping the inputs.

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

      If you duplicate the entire div with the class of "form" it will not overlap, but if you just duplicate the input and label elements it will. This is because the position property of the form is set to relative and the input is absolute.

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

    Hello.. thanks for this video. this helps.. and i have a doubt when we click on label its not working

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

    Thanks for this amazing video.

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

    easy and excellent! thank you so much.

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

    Great tuts really good

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

    v nice tutuorial...

  • @romuloalves9349
    @romuloalves9349 3 роки тому +3

    Ótimo vídeo parabéns ✌.

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

    Love u angela

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

    I want to use it in Python for App Desktop

  • @danushadhaamarasekera7215
    @danushadhaamarasekera7215 4 місяці тому

    Thanks 👍

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

    How would you stack these inputs on top of each other, like in a real-life Sign Up form?

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

      I have this tutorial that goes over how to create a complete sign up form: ua-cam.com/video/pfwEz3Zo4mA/v-deo.html

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

    Thank you!!

  • @amac1477
    @amac1477 2 роки тому +1

    Thank you very much for this tutorial! I've learned a lot! Can I ask you a question? Is there a way to apply styles to a textfield blinking cursor? I'm on a project where I haver to emulate a linux términal, but I haven't been able to find information in order to style that kind of cursor! Would you mind giving me a hint on that? Thanks in advance!

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

      caret-color: currentColor; will set it to the same color as the text color on that element. Or of course you can set it to whatever colour you’d like

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

    Thank You So much, i was looking for a way to do this, then i saw the main ingredient :not(:placeholder-shown) ☺

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

    how to control animations with loop

  • @GauravKumar-ue7nz
    @GauravKumar-ue7nz 2 роки тому

    Bingo, I was asked to make exact input animation in my current work.

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

    great video and great channel

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

    Thank you

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

    pretty neat

  • @mr.euphoria
    @mr.euphoria 3 роки тому +1

    good job

    • @mr.euphoria
      @mr.euphoria 3 роки тому

      do you have a social network?

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

    Love it 💕💕

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

    Cool !

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

    It's not working on form or more input fields

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

    Beautifully done. All standard HTML/CSS and no fancy JavaScript. That's how the modern web should be!

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

    not able to run in editor please anybody can help me

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

    Dope

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

    thks for the video.

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

    Why can't I define colors using '$' ?

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

    my form-label isn't retaining its original position when i focused out and nothing is typed :-(
    btw tysm i m continuously learning from you :-D

    • @angeladesign737
      @angeladesign737  3 роки тому +1

      Glad my videos have been helpful! Did you remember to add the placeholder=" " in the HTML?

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

      @@angeladesign737 ya i have done it ..but for try when i put like this
      placeholder = "." means content init it works fine now , But I m confused as of logic 🧐

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

      Try adding a space inside the placeholder, like this: placeholder = " "

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

    please when you are making short tutorial like this USE only CSS cuz not everybody know SCSS

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

    You are so beautiful person, thank you so much.

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

    qandeeeeeeeeee

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

    Awesome way to avoid JS by using :not👍