Тёмный

Input Animations with HTML and CSS | Input Label Animation 

Angela Design
Подписаться 47 тыс.
Просмотров 101 тыс.
50% 1

Опубликовано:

 

20 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 127   
@juresrovin4174
@juresrovin4174 2 года назад
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 👏🏻.
@sudityashrivastav
@sudityashrivastav 2 года назад
😂
@johnnytrovato73
@johnnytrovato73 Год назад
ha i hear you!! I feel the same way
@DarkSolidity
@DarkSolidity Год назад
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!
@DarkSolidity
@DarkSolidity 2 года назад
This is design looks so clean! When adding invalidation to this it will look so responsive.
@cbennder3877
@cbennder3877 Год назад
Best solution from all "float label" videos on RU-vid. Thank you.😊
@foupax
@foupax 3 года назад
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. 👏👏👏
@angeladesign737
@angeladesign737 3 года назад
Awesome! Thank you!
@mingirc
@mingirc Год назад
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.
@greykor140
@greykor140 Месяц назад
Absolutely an amazing video! Super helpful! Thank you so much for making this!
@ke6944
@ke6944 3 года назад
Congrat on passing the 10000 subscribers mark, I definitely need to learn Sass.
@angeladesign737
@angeladesign737 3 года назад
Thank you! Sass is awesome, I use it all the time now
@kalyankumar8597
@kalyankumar8597 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 Месяц назад
Helpful! I was wondering why we needed the not focus too! Thank you!
@Aayush-yr1df
@Aayush-yr1df 2 года назад
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.
@mahesharya2750
@mahesharya2750 2 года назад
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
@devdev1464
@devdev1464 2 года назад
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?
@chid_iinma
@chid_iinma 2 года назад
Thank you for this tutorial. It was really helpful
@7daysinSunnyJune
@7daysinSunnyJune Год назад
very good stuff Angela! Thanks for the great explanation!
@EduardoSecondo
@EduardoSecondo 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%; }
@josue-cedeno
@josue-cedeno 3 года назад
Perfect! I was just working on this idea. Thank you!
@angeladesign737
@angeladesign737 3 года назад
Glad it was helpful!
@MRCNRAJPUTGAMERS
@MRCNRAJPUTGAMERS 2 года назад
Thank u for being a great human being and taking ti to help all of us noobs out cheers
@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)
@tomaszklekner9879
@tomaszklekner9879 2 года назад
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 :)
@vortex3915
@vortex3915 2 года назад
why not just use the form element at 0:40?
@johnnytrovato73
@johnnytrovato73 Год назад
Awesome... this was clear and right to the point. great demo
@salmanfarshisajib6512
@salmanfarshisajib6512 2 года назад
You can use background transparent instead of background none. Very helpful video❤
@madansshetty4535
@madansshetty4535 2 года назад
bro not able to run on editor
@manitarai2969
@manitarai2969 3 года назад
What a detailed and clear explanation! I loved it
@angeladesign737
@angeladesign737 3 года назад
Glad it was helpful! Thanks!
@topea9107
@topea9107 2 года назад
Thank You. Helped me greatly in one of my Projects
@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 🙌🏽☺️☮️🎊
@jerickbetasa2171
@jerickbetasa2171 3 года назад
Wow. The solve for my problem is here in this video. Thanks! I hope you got 1million suscribers
@angeladesign737
@angeladesign737 3 года назад
Thank you so much! Happy it helped
@asmix7328
@asmix7328 3 года назад
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))
@angeladesign737
@angeladesign737 3 года назад
Glad it helped!
@clevermissfox
@clevermissfox 10 месяцев назад
Is there a reason you used a div.form instead of form.form and an input type of text vs input type email ?
@DimeloRobert
@DimeloRobert 2 года назад
Simply , I love it! thanks a lot!!
@raihan7422
@raihan7422 2 года назад
you helped me a lot, thanks for tutorial
@owltrades
@owltrades 2 года назад
Thanks a lot, I was finding exactly that kind of input animation.. 💝
@valeplussmarttech8477
@valeplussmarttech8477 2 года назад
Great explanation!
@seemaalam3127
@seemaalam3127 3 года назад
She explains very nicely... keep on dear.. add more and more videos
@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.
@sofiyataminu1139
@sofiyataminu1139 2 года назад
so easy. thank you sooo much. i would've installed a framework just for this.
@sirorvictorlagat3040
@sirorvictorlagat3040 3 года назад
Thanks, i have always wanted to know this. at last i have, thanks to you
@ompatel5226
@ompatel5226 3 года назад
Woah mam, you are at another level u know elements and their uses
@angeladesign737
@angeladesign737 3 года назад
Thank you so much!
@CodingHabib
@CodingHabib 2 года назад
Thank you Angela
@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.
@bijayadhikari1655
@bijayadhikari1655 Год назад
Thank you sir.... Very helpful video.
@dhruvvarshney1040
@dhruvvarshney1040 3 года назад
this is awesome
@sakshikumari3620
@sakshikumari3620 Год назад
If this html compiler is free on internet then please give or provide the path to go through this compiler.
@ZackSussmanMusic
@ZackSussmanMusic 2 года назад
you are an awesome teacher :)
@ouzadidibrahim
@ouzadidibrahim 2 года назад
I want to use it in Python for App Desktop
@wasayyed70
@wasayyed70 2 года назад
Superb, thanks.
@ofiresaban4510
@ofiresaban4510 2 года назад
Helped me, Thanks!!
@NileshDadheech
@NileshDadheech 3 года назад
Amazing sis 💓😊👍
@angeladesign737
@angeladesign737 3 года назад
Thank you!
@kamichikora6035
@kamichikora6035 Год назад
Great Work
@Wicked-Developer
@Wicked-Developer 2 года назад
Thank You So much, i was looking for a way to do this, then i saw the main ingredient :not(:placeholder-shown) ☺
@zihadprogrammer4246
@zihadprogrammer4246 2 года назад
That's awesome.
@williammartinez7172
@williammartinez7172 2 года назад
Thank you love your tutorial !!
@antons7210
@antons7210 3 года назад
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 :)
@HandcartRule46
@HandcartRule46 2 года назад
Awesome tutorial
@zebronebanda6339
@zebronebanda6339 3 года назад
easy and excellent! thank you so much.
@rivecristian
@rivecristian 2 года назад
Great content, thank you!
@SanukaSenumitha
@SanukaSenumitha 3 года назад
Thanks for this amazing video.
@romuloalves9349
@romuloalves9349 3 года назад
Ótimo vídeo parabéns ✌.
@bleulola
@bleulola 3 года назад
Thanks a lot for sharing your expertise!!! I am rookie and I learn a lot from valuable contents like yours.
@angeladesign737
@angeladesign737 3 года назад
Glad it was helpful!
@rohankumarshah5679
@rohankumarshah5679 3 года назад
Fabulous Tutorial
@evertonduarteguimaraes7694
@evertonduarteguimaraes7694 2 года назад
Great content, thank you so much!
@amac1477
@amac1477 2 года назад
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 10 месяцев назад
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
@mubasherahmad733
@mubasherahmad733 2 года назад
how to control animations with loop
@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
@aryan6838
@aryan6838 2 года назад
Great work mam🤩
@GauravKumar-ue7nz
@GauravKumar-ue7nz 2 года назад
Bingo, I was asked to make exact input animation in my current work.
@sohibabduganiyev3508
@sohibabduganiyev3508 2 года назад
THANK YOOOOOOOU
@onmarx7877
@onmarx7877 3 года назад
Thanks Angela 👍
@angeladesign737
@angeladesign737 3 года назад
Glad it was helpful!
@psvishnu4683
@psvishnu4683 3 года назад
Hello.. thanks for this video. this helps.. and i have a doubt when we click on label its not working
@danushadhaamarasekera7215
@danushadhaamarasekera7215 2 месяца назад
Thanks 👍
@hackerindia1
@hackerindia1 3 года назад
It's not working on form or more input fields
@harisali8007
@harisali8007 3 года назад
how to handle label animation in dropdown selection box ??
@WachKayan
@WachKayan 2 года назад
Love u angela
@evandromatt
@evandromatt 2 года назад
Thank you!!
@jenniferward6821
@jenniferward6821 3 года назад
Great tuts really good
@angeladesign737
@angeladesign737 3 года назад
Glad you like them!
@mzohaib27
@mzohaib27 Год назад
v nice tutuorial...
@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.
@milknei_beats
@milknei_beats 2 года назад
Thank you
@archith_1915
@archith_1915 Год назад
Why can't I define colors using '$' ?
@Максим-й3з5н
@Максим-й3з5н 2 месяца назад
because it's scss syntax
@madansshetty4535
@madansshetty4535 2 года назад
not able to run in editor please anybody can help me
@quacquac_quacquac
@quacquac_quacquac 3 года назад
Love it 💕💕
@angeladesign737
@angeladesign737 3 года назад
Thank you!!
@quacquac_quacquac
@quacquac_quacquac 3 года назад
@@angeladesign737 💕
@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: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-pfwEz3Zo4mA.html
@mradchemseddine9965
@mradchemseddine9965 3 года назад
Beautifully done. All standard HTML/CSS and no fancy JavaScript. That's how the modern web should be!
@angeladesign737
@angeladesign737 3 года назад
Thank you so much!
@madansshetty4535
@madansshetty4535 2 года назад
that code is not working in editor
@burgasdragonheirsilentgods
@burgasdragonheirsilentgods 3 года назад
Cool !
@angeladesign737
@angeladesign737 3 года назад
Thanks!
@salahberriani4596
@salahberriani4596 3 года назад
great video and great channel
@angeladesign737
@angeladesign737 3 года назад
Thank you so much!
@beinyourguard
@beinyourguard 3 года назад
pretty neat
@angeladesign737
@angeladesign737 3 года назад
Thanks!
@duducv
@duducv 3 года назад
thks for the video.
@mr.euphoria
@mr.euphoria 3 года назад
good job
@mr.euphoria
@mr.euphoria 3 года назад
do you have a social network?
@mastercode7851
@mastercode7851 3 года назад
please when you are making short tutorial like this USE only CSS cuz not everybody know SCSS
@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 года назад
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 = " "
@jiauyjiauy3777
@jiauyjiauy3777 2 года назад
Dope
@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👍
Далее
The problems with viewport units
13:23
Просмотров 362 тыс.
Распаковка Monster High Potions #monsterhigh
01:00
How to Install and Use an Adjustable TV Arm
00:18
Просмотров 963 тыс.
Award Winning Animation With Only 20 Lines Of CSS?
6:59
Input Label Animation | HTML & CSS
12:36
Просмотров 13 тыс.
Input Animations With HTML And CSS
18:09
Просмотров 769 тыс.
Learn CSS Flexbox in 20 Minutes (Course)
20:37
Просмотров 112 тыс.
Using CSS custom properties like this is a waste
16:12
Просмотров 171 тыс.
:has() opens up new possibilities with CSS
14:30
Просмотров 286 тыс.
Incredible scroll-based animations with CSS-only
32:23
Просмотров 435 тыс.