Input Animations With HTML And CSS

Поделиться
HTML-код
  • Опубликовано: 2 фев 2025

Комментарии • 672

  • @tykemajor9442
    @tykemajor9442 5 лет назад +842

    I always admire and respect anyone who takes the time to educate others. Keep this up mehn

    • @richiekho1159
      @richiekho1159 4 года назад +9

      He is really a nice mahn

    • @w3hacker
      @w3hacker 4 года назад +5

      This can make money and make lots of friends maybe.

    • @phucbinh9441
      @phucbinh9441 4 года назад

      And for free too

    • @DevProTips
      @DevProTips 4 года назад +2

      What he shows here can be done much more simply by installing Google's material design css kit. It took me 10 years of doing it the old way to figure that out.

    • @adamonjourney3726
      @adamonjourney3726 4 года назад +1

      @@DevProTips Jonah... that is what I love and hate together about kits and frameworks. Yes, sometimes it is needed to be fast and build not all from scratch. But I want it to understand all, from the very beginning. Every 0 and 1. Why a language struggle at some point. What happens in the binary... and sometimes "simple" css, which a kit could done with a 2-liner. That makes fun, that is, why we code!

  • @gerypilas
    @gerypilas 5 лет назад +148

    If the input is not required, we can use the ":not(:placeholder-shown)" instead of ":valid". And in the html code for the input field add a placeholder with the value " "(space).

    • @Svetoz
      @Svetoz 5 лет назад +3

      thank you! it's exactly what wasn't shown in this tutorial!

    • @serjmarkelov9915
      @serjmarkelov9915 4 года назад +6

      There's a special place in heaven for such a good persons like you;) Thanks mate!

    • @pranoychow3808
      @pranoychow3808 4 года назад

      Thank you! I didn't have "required" specified and was wondering why it wasn't working. This worked perfectly!

    • @kalitbh5250
      @kalitbh5250 4 года назад

      Thanks a lot mate ... I was having a tough time with it .

    • @mikegogl
      @mikegogl 3 года назад

      thanks bro, I was just gonna do a google search on this but decided to scroll to the comments first.

  • @santiagozambrano1139
    @santiagozambrano1139 4 года назад +3

    What you taught may seem simple but you can see the enthusiasm and love of this guy :D

  • @Jakersfire
    @Jakersfire 5 лет назад +40

    Top tutorial Ed, you are putting out some really great modern content, your channel is going to blow up for sure and it will be fully deserved, more of these please

    • @developedbyed
      @developedbyed  5 лет назад +7

      Thanks so much! I am working 24/7 to provide quality videos now!

    • @HaxGuru
      @HaxGuru 5 лет назад +1

      True

  • @HERLEYPUENTES
    @HERLEYPUENTES 5 лет назад +282

    The first lines of the CSS code are.
    *{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    }

    • @Futureblur
      @Futureblur 4 года назад +16

      This comment makes literally no sense

    • @gabrielalencastro189
      @gabrielalencastro189 4 года назад +6

      Thanks, you save me kkkk

    • @jamesmcconnon2
      @jamesmcconnon2 4 года назад +60

      This makes total sense. He is letting people know to add the typical "reset styles" and also setting the browser to interpret the box sizings correctly.
      If you check out what a reset stylesheet is, you will understand why this is sometimes neccesary. Also i think it is fair to point it out, especially when you are messing with padding and positioning in a html/css project. it is such a normal proccess at the start of a project that Ed didn't mention it.

    • @aayushgupta2648
      @aayushgupta2648 4 года назад +6

      yes this comment helped me out,,too thanks buddy

    • @prateekmahajan1929
      @prateekmahajan1929 4 года назад +1

      Exactly

  • @developedbyed
    @developedbyed  6 лет назад +294

    I wanna see some awesome forms from you guys!

    • @francisvieira4466
      @francisvieira4466 5 лет назад +5

      very good video, this channel was what I needed to learn better about html, css and javascript, congratulations

    • @mariopurisic5133
      @mariopurisic5133 5 лет назад

      Thanks for the video man! I have one question though, for me, the :valid selector does not work as in your case. for me, it just turnes the form i that state as by default... so when I add that css, it just applies those styles by default and not just on :focus... you have any idea why that could be?

    • @aliayubali216
      @aliayubali216 5 лет назад +2

      Hey how old are you and when did you start coding? you are awesome by the way.

    • @rajnadkar7915
      @rajnadkar7915 5 лет назад

      It worked for the first time when I developed it but isn't functional the 2nd time I opened... I didn't touch the code once it was ready.... what could be the possible reason for this error

    • @akhwanstudio
      @akhwanstudio 5 лет назад

      @@rajnadkar7915 what browser do you used?

  • @fadouarasmouki725
    @fadouarasmouki725 5 лет назад

    Thank you so much Dev Ed, I am a computer science graduate from Morocco who stopped coding for four years almost, but thanks to your videos and the charismatic way you explain concepts, I am finally starting to get a taste of it back.

  • @hyfydistro
    @hyfydistro 4 года назад +4

    The humour Ed sometimes throw in is astounding. "We'll be a triangle next time!" 😂 Great work on the tutorial!

  • @backgroundnoiselistener3599
    @backgroundnoiselistener3599 4 года назад +1

    I like how excited you are to teach coding. People like you make great teachers

  • @clevermissfox
    @clevermissfox Год назад +1

    Instead of putting overflow hidden and translating the pseudo element outside of it, I tend to transition the width from 0 to 100% and adjust the transform-origin. Nice tutorial thanks !

  • @arnoldcarrot2947
    @arnoldcarrot2947 5 лет назад +74

    "Grab your font-family and bring them to the sheriff" that really made me laugh.

  • @thecnexperience
    @thecnexperience 4 года назад +1

    This was such a nice tutorial. No new techniques or anything but it all just came together so perfectly!
    Started to follow you after watching couple of React tutorials. I liked the easy going approach to a subject at hand but the quirky humour was just priceless!
    Thank you and hopefully you keep posting the videos!

  • @Pupan0102
    @Pupan0102 5 лет назад +6

    been studying soft dev for 3 years and today i learned more css than in all these years xD

  • @tupacan
    @tupacan 5 лет назад +160

    I would not use :valid in a real-world project, since :valid checks if the input value is valid by its settings.
    What I mean is, if there is an input with email type and the user put an invalid email address, this will not work.
    In my opinion, for the animated line, a much better approach would be to use width: 0 and width: 100% instead of transform it "outside" of the form and hiding it with overflow: hidden.
    It would be nice if you add your codes to github, so we can all contribute.
    Anyways, great tutorial! Keep up.

    • @gabrielmareken
      @gabrielmareken 5 лет назад +14

      You can use transform: scaleX, it will run at 60fps and has a plus that you can define the direction/origin. It's like the width you said, but has the point I stated above about origin/direction, plus better performance.

    • @milanmilutinovic9922
      @milanmilutinovic9922 5 лет назад +24

      You should always have preference to use Transforms & Opacity when doing transitions and animations. The CSS render engine has 3 processes which render CSS to the page, Layout, Paint & Composite. Width uses all three whereas transform: translate would only use the Composite process to render.
      Check out more about how animations render here
      csstriggers.com/

    • @yakovlev_io
      @yakovlev_io 5 лет назад +1

      Hope you will find it helpful
      ruclips.net/video/N5EW4HnF6FU/видео.html

    • @networmx128bit
      @networmx128bit 5 лет назад +10

      This could be done with :placeholder-shown selector instead

    • @jornejongsma
      @jornejongsma 5 лет назад +1

      Yes :valid not the best suited for this purpose. If we change the input type to email, the label will go down after typing an invalid email...

  • @steve_matin
    @steve_matin 4 года назад +8

    "We're learning code, and we're learning shapes at the same time"
    Those are like... my two favorite things.

  • @kwasiezor1630
    @kwasiezor1630 5 лет назад

    I do really appreciate all the videos that you post on channel. Great job Dev. And I get really fun and pleasure watching your works. Thanks for everything

  • @Oughnutsdndaizzap
    @Oughnutsdndaizzap 4 года назад +1

    I have to say that transition at the end was beautiful 👍🏼

  • @mjdev-i1p
    @mjdev-i1p 3 года назад

    I know css for almost 17 years now so this is nothing new to me but I still have to say that I am impressed how you present that knowledge. This is an excellent tutorial because you pack so much usefull CSS-features in as little as 18 minutes. Sibling-Selecors: Check; Transforms: Check; Transitions: Check; Sticking to the topic: Check; If someone asks me where to learn CSS i will reccomend your channel.

  • @billyfairbank
    @billyfairbank 5 лет назад

    Professional dev of many years and that's a technique I've never seen. Well done and well explained.

  • @HarshRajAlwaysfree
    @HarshRajAlwaysfree 4 года назад

    This was really nice of you
    after some personal changes and function preferences im pretty sure we can make an awesome input now

  • @oldstuff400
    @oldstuff400 5 лет назад +4

    Really enjoy your videos! Educational, entertaining, and you have great energy. You are a very talented teacher, and I hope to see your channel keep growing. Thanks for the great content!

  • @adamonjourney3726
    @adamonjourney3726 4 года назад

    One thumb up is not enough... I could repeat myself under every of your vidz: It makes so much fun with you to learn... you have fun with what you do and this is what we can see, all your smiling and joking. You show small typos or mistakes and that makes you more humand than some perfect coordinated tutorials without mistakes. You describe things sometimes even only as a sidenote, which helps me to understand better at some points, which I didn´t have learned quite yet. You motivate myself to go further and learn more. More of that, please, more of you ;)

  • @Javoke
    @Javoke 4 года назад +2

    It’s amazing!! I just love the passion you show, I can talk by your facial expression how much you love coding!! Thanks for sharing!!

  • @MohammadYs77
    @MohammadYs77 4 года назад

    I cannot thank you enough for sharing your beautiful and practical ideas, You've literally taught me 10 times more than my professor. Thank You

  • @ryejames00
    @ryejames00 3 года назад

    You don't know how much this helps me today. Uggh! Thanks. More kinds of this please.

  • @BrettCahill
    @BrettCahill 4 года назад

    Second video of yours I've clicked on now. Subbed! Love what you're teaching and the positivity

  • @lorinleatham7527
    @lorinleatham7527 4 года назад

    You are the best Dev!!! Funny and educational, you're the Mr Rogers of programmers!

  • @thesupremegod1
    @thesupremegod1 4 года назад +1

    This is probably one of the best tutorials I have ever watched. Easy to follow, great explanations of every step, good fucking job :D

    • @zacboyles1396
      @zacboyles1396 4 года назад

      You must not have tried entering invalid text.

  • @cybergen49
    @cybergen49 4 года назад

    A minute and 36 seconds in and I've already learned how to disable that pesky autocomplete, super useful.

  • @rimantasdanilevicius6754
    @rimantasdanilevicius6754 5 лет назад

    I agree with Daniel Watts. Your videos are enjoyable and educational and you show some new advance and cool, nice stuff. Your channel is worth to follow.

  • @300debasish
    @300debasish 4 года назад

    I like the Excitement you always keep in your videos. 👍

  • @btrewern
    @btrewern 5 лет назад +25

    Changed it to use :
    transform: translateY(-120%) scale(0.8);
    instead of transforming the font-size. Smoother animation!

    • @christopherlawes9286
      @christopherlawes9286 4 года назад

      Tried this but it made the text move slightly to the right.

    • @AndrewBone
      @AndrewBone 4 года назад

      @@christopherlawes9286 transform-origin:top left;

  • @MasterZiomekPL
    @MasterZiomekPL 5 лет назад +2

    I'm comming back to this video every time I need to make a new unique input :D

  • @odn7769
    @odn7769 3 года назад

    The number selector is awesome! :D

  • @DaisyIllustrations
    @DaisyIllustrations 4 года назад

    Your knowledge of CSS is amazing.

  • @spaghety
    @spaghety 5 лет назад

    That's a slick way to get the bottom line to animate in like that

  • @ratansen4542
    @ratansen4542 4 года назад

    I didn't thought of it without jQuery...just awesome

  • @paolagalli711
    @paolagalli711 4 года назад

    Thank you for taking your time to educate us :) it's heart warming to see someone so passionate about their work! It motivates me :) have a good day

  • @marcoytciao
    @marcoytciao 4 года назад

    seeing this css tricks makes me fall in love with you

  • @BeniaminSzabo
    @BeniaminSzabo 5 лет назад +18

    Awesome tutorial.
    I definitely learned some new things. However, after some research, I discovered that the :valid pseudo class is probably not the best choice. A better solution would be :not(:placeholder-shown) with a space as a placeholder on the input. This doesn't work in IE11 though.

    • @KostasOreopoulos
      @KostasOreopoulos 5 лет назад +3

      The best solution is to do javascript validation and add a custom valid class, as all frameworks do, but the goal of the animation was not that. Tweaking it is pretty easy

    • @yaboi.hitmaizer
      @yaboi.hitmaizer 4 года назад

      for some reason valid wasnt working for me and this comment actually helped me a bunch, thanks!

    • @BeniaminSzabo
      @BeniaminSzabo 4 года назад

      @@yaboi.hitmaizer I'm glad my comment was helpful ☺️

  • @furiousjanush5776
    @furiousjanush5776 4 года назад

    Awesome tutorial Ed. Like all the other movies on your channell tbh.

  • @talhasaleem8333
    @talhasaleem8333 4 года назад

    Seriously you are awesome.. best teacher respect level 1000%

  • @francisvieira4466
    @francisvieira4466 5 лет назад

    Very good video, this channel was what I needed to learn better about html, css and javascript, congratulations

  • @patricpires3806
    @patricpires3806 5 лет назад +3

    Thx Ed for this tutorial, your channel is helping me to be a creative and discover new things about development and training my English. Thank you so much.

    • @4GrausDeMiopia
      @4GrausDeMiopia 4 года назад +1

      Um brasileiro? 1 anos atrás? E aí como ta?

    • @patricpires3806
      @patricpires3806 4 года назад

      @@4GrausDeMiopia Cara o conteudo dele é massa.

    • @4GrausDeMiopia
      @4GrausDeMiopia 4 года назад

      @@patricpires3806 Ta crack já em front-end?

  • @GlassScissors
    @GlassScissors 5 лет назад

    Great tutorial! You actually inspire me to get more involved with the front end dev and look into the css animations :)

  • @alan-overthenet
    @alan-overthenet 5 месяцев назад

    Thank you, this is excellent. I enjoyed it and learned a lot of new CSS tricks

  • @antoniomargareeeetti
    @antoniomargareeeetti 5 лет назад +1

    nice idea with :valid. I didn't think about it and used js)) veeeeeery nice!

    • @tr7343
      @tr7343 5 лет назад

      Me too! I had problem on this case.I enjoyed the solution.

  • @jolynes-fur-coat
    @jolynes-fur-coat 4 года назад

    Thank you so much!!! It's a hassle to do it with libraries since you can't change the colors! Such a huge help c:

  • @christiansaborio410
    @christiansaborio410 3 года назад

    Super easy to follow and enjoyable at the same time, thanks!

  • @noahg2
    @noahg2 4 года назад

    you honestly deserve more subscribers and views.

  • @nocturno7887
    @nocturno7887 5 лет назад

    Thank you Sir, I achieve this sometime ago, but your technique is much better, I was using jQuery also, and you achieved a better result only with CSS. Thank you very much master.

  • @milosleng1175
    @milosleng1175 4 года назад +1

    This guy a CSS is pro, no doubt about that!

  • @waleedashfaq1714
    @waleedashfaq1714 4 года назад

    Good method of giving information...
    I like your style of speaking and method..
    I appreciate you brother..😊

  • @andilesimelane4771
    @andilesimelane4771 5 лет назад

    After Brad suggested you on on of his videos, i knew its gonna be quality

  • @tusharpatne4860
    @tusharpatne4860 4 года назад

    Thank you for the video. This video cleared pseudo:class and pseudo::elements for me.

  • @mRWiil
    @mRWiil 5 лет назад

    Dev Ed thank you for this example, i'm new :) , you won one person more for the channel

  • @otaviovaladao4884
    @otaviovaladao4884 4 года назад

    Nice teach, i'm from Brazil and i realy appreciate u.
    GJ man

  • @pricklypickles
    @pricklypickles 5 лет назад

    Great tutorial, look forward to the next, hopefully many, MANY more! Thanks Ed.

  • @jornejongsma
    @jornejongsma 5 лет назад +6

    Ok,... :valid selector might not be the best selector to keep the label up in all intended situations. A solution:
    step 1. Add a placeholder prop to the input with the value: " ". So:

    • @BobbyBundlez
      @BobbyBundlez 3 года назад

      THank youuu!!! you saved me QUICKLY. thank god i read the comments. in my case the :valid was not persisting... and the input was not even required or using any validation... but all in all BEYOND that anytime i put text into the input it would not persist between pages. the form would stay valid no matter what. thanks again!

  • @skydiver97
    @skydiver97 4 года назад

    You're just awesome...Like your always smiling face!
    I was quite disturb about coding and feels irritating but you boosted me up with your cute and nice smile.....God Bless you boy!

  • @soumyajitdey5720
    @soumyajitdey5720 4 года назад

    You are such a charming personality with great content! Great video

  • @ThisIsmeIrving
    @ThisIsmeIrving 4 года назад

    What a perfect video to start my day, I love you

  • @2002budokan
    @2002budokan 5 лет назад

    YES! This is something worth to watch.👍

  • @shubhammetkar6021
    @shubhammetkar6021 4 года назад +1

    I was always fond of such beautiful stuff then material UI told me to use it's textfield with just 2-3 liines of code, things change so drastically, man!!!

  • @axelblaze3361
    @axelblaze3361 5 лет назад

    you are a good teacher. I really enjoy your videos.

  • @zaidsaiyed6076
    @zaidsaiyed6076 5 лет назад

    I'm from india,you css tutorial is marvelous.Also you're behave like "professor" in money heist series..😀

  • @dl9926
    @dl9926 3 года назад

    I am mindblown right now while watching this, knowing how powerful CSS is lmao. CSS is kinda underrated due to Javascript for web-dev...

  • @rapasebastian5678
    @rapasebastian5678 4 года назад

    Just re-watched it!!! Great!!
    Manage to create a progress bar with this tricks :D

  • @Zeph90Games
    @Zeph90Games 4 года назад

    Thank you for being so detailed man! subbed!

  • @farazfrank
    @farazfrank 4 года назад +1

    Awesome Ed

  • @charliecalunsag2384
    @charliecalunsag2384 4 года назад

    This is very useful i insert this to my log in form module

  • @beshoyabd-elsayed8510
    @beshoyabd-elsayed8510 4 года назад

    That was beautiful! Thank You for sharing that.

  • @mm1nt
    @mm1nt 5 лет назад

    Good job bro thanks a lot I rarely reply to youtube vids keep it up man

  • @srikarravoori124
    @srikarravoori124 4 года назад

    Great work! Honestly speaking this time I am really confused , for me it is bit complex, but I think it needs little more explanation regarding how you play around with input, label and positions at the beginning to have an idea as how we are going to work on to get the final output. I follow all your videos. Thanx

  • @AnjoSoy
    @AnjoSoy 2 года назад

    Great explanation! Thanks for making this video. :)

  • @subhashchandra2107
    @subhashchandra2107 5 лет назад

    I love your teaching style dude😍 awesome And thankyou , I'm learning a lot from you.

  • @milosleng1175
    @milosleng1175 4 года назад +1

    This is very advanced stuff though lol. I know many tech people working with CSS and nobody could do this by heart.

  • @annm2855
    @annm2855 4 года назад

    I love yyyyyyyyyoooooooouuuuuuu, my best teacher on RUclips😍😍😍

  • @kurtisenos2251
    @kurtisenos2251 4 года назад

    I would just like to advise people to not be put down if this tutorial is to complex to begin with. I'm just starting out and the other day, I watched this tutorial and didn't fully understand the last part. This was due to too much info process. So I tried multiple times in my own way and re-watched this tutorial a few times and now it sounds so simple to create this. When comes to complexity, especially with programming - break everything down and start by building the individual blocks. You will then start to learn how things are made. You may think you're wasting time as it can take hours/days/weeks, but in the long-term, it's actually a quicker process.
    Great tutorial Dev!

  • @paraschouhan5205
    @paraschouhan5205 4 месяца назад

    thank you for your valuable vedeo .....I love to watch your lecture , your presentation way is awesome !!!!

  • @sir_afk
    @sir_afk 5 лет назад

    Subbed. Well earned bro. Informative use of pseudo elements. +1 👌

  • @thanigaivelk2112
    @thanigaivelk2112 5 лет назад

    Yeah. This tutorial helped me with my project. Thanks @Simo_Edwin. Keep posting. We will keep supporting

  • @denzelkhonje3327
    @denzelkhonje3327 6 лет назад

    geniuses do share with others, and thats what you are doing... keep it up genius

  • @jesti988
    @jesti988 4 года назад

    love and respect from India / merry Christmas 2020

  • @farhaditsamadov5513
    @farhaditsamadov5513 5 лет назад

    Just simple and amazing! Good job)

  • @sunilmandiya5788
    @sunilmandiya5788 5 лет назад

    Nice work man you have taught very well keep it man i appriciate your.work

  • @Gelo09
    @Gelo09 4 года назад +1

    Woah!😲 Thanks for you tutorial, I am new in HTML CSS,😊 Love you videos❤

  • @AbdullahAli-yu4hz
    @AbdullahAli-yu4hz 5 лет назад

    This guy is so good, keep it up.

  • @JeffryUGP
    @JeffryUGP 4 года назад

    Great Tutorial, very informative and very well explained, helped me a lot to understand how to set up my input field. Thank you very much 😀 Keep it up!

  • @Kaichos
    @Kaichos 4 года назад

    Dude, that was supper helpful. Thanks for your time.

  • @членчленов-д5о
    @членчленов-д5о 4 года назад

    Thanks Ed ! Your video really helped me

  • @liotechtutorials7089
    @liotechtutorials7089 4 года назад

    I just love this guy
    Thank u so much for helping beginners like me

  • @thienphan5365
    @thienphan5365 4 года назад

    OMG I love your channel!! You are amazing! Thank you so much.

  • @daffapradana8557
    @daffapradana8557 5 лет назад

    Good content as always, i owe you so much bro!

  • @elzbietakocz8243
    @elzbietakocz8243 4 года назад

    This is look awesome! I love it! 😍😍

  • @danidani-cy4ex
    @danidani-cy4ex 5 лет назад +1

    You are amazing. Thanks for your work.

  • @ilverin.matriam
    @ilverin.matriam 5 лет назад

    you deserved my like, good sir

  • @agk2011
    @agk2011 5 лет назад

    That was useful. Thanks, man and keep it up. 👏

  • @mohitdas5292
    @mohitdas5292 5 лет назад

    I got that one amazing css style ...u r awesome broo... Subscribed!!

  • @berylverse5178
    @berylverse5178 5 лет назад

    i really like your video. and i always learn new from you thank you so much being here to teach new stuff. love from india )