I'm not a frontend dev anymore but i still come back just to see the head wobbling. It's great
@jaredlash50025 күн бұрын
My guy throws his head around more than Ray Charles.
@eqprog5 күн бұрын
I somehow never noticed this until reading your comment. Now it’s all I can see.
@brett84c5 күн бұрын
Haha, y'all are mean. He might have some kind of movement disorder.
@ToddPressleyy5 күн бұрын
Ahahahaha… so irreverent.
@krasavchiklite5 күн бұрын
u left cause AI scared you?
@mistergurr5 күн бұрын
This is nice, but Discord as an example is a tad misleading for the use case here. Discord doesn’t use a textarea, they use a contenteditable div because their chat input is a “rich editor” (so they can display mentions, custom emojis, markdown etc inline in the editor). This is the direction many applications are heading, and text areas are becoming less useful over time. Still a nice feature for those times where they are useful. If anyone is curious, Discord’s chat input is built with a headless editor called Slate.
@Jaime.025 күн бұрын
Extremely interesting comment, thanks!
@im-nassinger5 күн бұрын
@@Jaime.02100% agree
@JohnWickXD5 күн бұрын
Thanks for the information ❤
@johnadams62495 күн бұрын
will try this out for my project !
@ukaszzbrozek64704 күн бұрын
It reminds how before "scroll-behavior: smooth;" was added I had to wrote JS function for smooth scrolling. It's great that CSS is making more things easier.
@aqua-bery4 күн бұрын
I love front end videos from a professional head shaker!
@sicfxmusic5 күн бұрын
Wake me up when this gets support on 90% of browsers!
@Astral1005 күн бұрын
Exactly.
@rubenreyes20004 күн бұрын
Right. Until this is widely supported (hello Safari and Firefox!) it's unfortunately useless
@dutscherydo4 күн бұрын
safari and firefox are the new ie6. only chrome is the one. progressive enhancement will bring these both browsers in stress :D
@core363 күн бұрын
@@dutscherydo I can’t let you slander my bois just like that. Firefox and Safari struggle to keep up with chrome clones, Microsoft didn’t care about implementing new features into internet explorer because they enjoyed their huge market share from the windows bundle. Huge difference. Don’t you ever compare those, or I’ll come into your house and break your pasta 🤌
@dutscherydo3 күн бұрын
@core36 hehe come here and eat my Pasta :D chromatic with storybook tests all browsers for us and there you can See that firefox and safari has the most struggle with simplest things like focus elements or animations. Its like the early web dev years with ie6.
@mohankrishna69344 күн бұрын
00:29, when he said that, I felt happy and emotional at the same time. I am currently struggling a lot with designing my SaaS product. There are very few people like Kyle who dedicate a lot of work for developers like me. Thanks a lot bro.
@Kokityo5 күн бұрын
I've been waiting 10 years for this property
@im-nassinger5 күн бұрын
lol
@Rami-bi9xj4 күн бұрын
could've made it since then
@maciejzettt4 күн бұрын
Only 10? 😂
@Kokityo4 күн бұрын
@@maciejzettt maybe more 😆
@welling13 күн бұрын
And now we get to wait for other browsers to impliment it.
@Martin-dw9vm5 күн бұрын
This is insane timing, just a couple of hours ago I was stressing about how hard this was to implement. Just replaced everything with a couple of lines of code and couldn't feel better. Appreciate it 🤝
@MelMacaluso5 күн бұрын
Good luck with browser support tho ahah
@Martin-dw9vm5 күн бұрын
@MelMacaluso that's a really good point, will have to do some testing
@MelMacaluso5 күн бұрын
@@Martin-dw9vm It basically cannot be used in a commercial environment (yet)
@bugged12125 күн бұрын
Already used it on a recent project, it's in tailwindcss 4.
@iThou00116 сағат бұрын
You are really simplifying the web for us. Thanks.
@tchpowdog5 күн бұрын
This is cool, but in my experience, textarea is becoming antiquated. It's good for raw text input on forms, but.. that's kind of it. Most other situations nowadays require some type of rick content within the text block. So you use a div with contenteditable="true". I wish there were more/better native features for contentedible divs.
@Efecretion5 күн бұрын
text-area is critical in many use-cases. Specifically, internal tooling at companies often involve attaching plain-text notes to flags and keep track of such things. Rich text can be nice in some cases, but due to how quickly the engineers are going and how many things they're responding to, it's not practical. I do have the ~80 loc JS bit to auto-grow my text-area, and I will certainly be using this new feature!
@erik_the_red4 күн бұрын
I really wish you led with the fact that it was only supported in Chromium. I generally do not implement features like this unless the browser coverage is there.
@ghotifish18384 күн бұрын
I spent ages trying to build something like that before giving up and just settling with the one liner for a search bar lol
@adityaanuragi69165 күн бұрын
Ran into this problem when making my own notes app Used the useLayoutEffect hook and it worked wonders I know this video is with CSS only and but incase someone is stuck with it in React like me I thought this'd help Great video btw
@nageshgorthi27645 күн бұрын
Nice explanation 👌
@ScriptyVijay5 күн бұрын
field sizing looks cool 😁 will use this in my project.
@eddie_dane5 күн бұрын
A brand new thing, I am never gonna use!
@komiljonyormurodov39795 күн бұрын
cool feature. hope that it will be supported soon in all major browsers
@tubero9113 күн бұрын
Love to see the HTML and CSS folks taking 20 years to introduce trivial table stakes features like this.
@DamianNAudio4 күн бұрын
The only use case I can think of is some sort of "add new tag" input (input that looks like a new tag). But it's pretty easy to do with ResizeObserver
@DanielZ1337TM4 күн бұрын
I have begun just covering his face with my hand on my screen, because I cannot do it with the head wobbling 😭
@serogaiusufir96155 күн бұрын
i remember having headache doing this on my chat app, good update !
@GilGoldshlager5 күн бұрын
Finally! thank you for the info, I hope it will also become supported in other browsers soon as well 🙏
@df61485 күн бұрын
Content like this is why I subbed
@exopencartru5 күн бұрын
Never saw it as problem, just replace textarea with regular div, add contenteditable=true. If it's about send data to the server, add a few line of code to copy content of div to some hidden input. Of course one line of CSS is better, but even before it came out it wasn't a big deal💁♂
@jwmfranke15 күн бұрын
This CSS Property Prevents Thousands of Head Wobbles: position: fixed
@LV4EVR5 күн бұрын
I can definitely see use cases for this. But ... come on Firefox!!!
@AlexMercadoGo3 күн бұрын
From my UX perspective, you really don’t want your input fields to default to 100% width because it suggests to the user that the input should be really long, when usually the input should be much shorter.
@randomuser66438Күн бұрын
People type the requested information. No one cares about the width of the field. The 100% width is obviously a designer decision just like justified text.
@mattythebatty14 күн бұрын
Looks good although in the meantime, rather than use 100's of lines you can use ``. If you want to handle forms in a simple way just add`` then add and event listener (oninput) to copy the content into the hidden input
@thecheesycookie27675 күн бұрын
I was just looking for an easy way to do this yesterday, this is amazing!
@suauhwang4 күн бұрын
Regarding the select-element, it would be nice if they could add another option "max-content" to set the select content-width to the longest option available
@GustvandeWal4 күн бұрын
That is the default.......
@suauhwang4 күн бұрын
@@GustvandeWal oh wow, never realized that, must be me breaking it somehow.
@GustvandeWal4 күн бұрын
@@suauhwang Kyle explicitly showed and talked about this default behavior in the video. It is what made the property matter in the first place.
@taquanminhlong13 сағат бұрын
Thanks for sharing, time to refactor my code 😂
@harshanawijesinghe92645 күн бұрын
This is really usefull. And most importantly droped the right time 😂❤
@retrotheft5 күн бұрын
Oh wow. I've got a component in my app where this has been giving me grief... I got it to "almost good enough" months ago and haven't touched it since. Hopefully Firefox and Safari implement it soon.
@gmnayeem255 күн бұрын
Thanks for sharing the helpful content ❤❤
@muhammadzahidi65495 күн бұрын
Finally!!! Years of pain had to past tho...
@cthinkzz21 сағат бұрын
How does these css properties implemented internally? Do they use Javascript? Or any other assembly language on the browser side?
@rubenheymans19884 күн бұрын
Real life examples would be nice
@789juggernaut3 күн бұрын
Someone on the web actually spelled the word "you're" correctly.
@JasonKaler2 күн бұрын
are you're sure?
@Yawn05 күн бұрын
What if you want the textarea to expand upwards instead?
@manantrimbakey79552 күн бұрын
your content is good, (joking) your head bops like the thing (game) npc when they are in fear XD
@amorenva5 күн бұрын
css is unstoppable
@StillK1ck1n5 күн бұрын
very useful, thanks!
@liadias891511 сағат бұрын
Can I check if the browser supports it to use Javascript otherwise, or have I to get the browser version and manually trigger javascript based on the version hardcoded on my code?
@cayjutler12624 күн бұрын
10 minute video to tell you that field size is based on the content
@tuannguyenanh74664 күн бұрын
Yeah, the growing textarea was a nightmare to me. Thank you so much, it just WOW. But unfortunately it isn't widely support.
@lostinthenarrativve4 күн бұрын
Hey Kyle what microphone and audio interface do you use?
@WebDevSimplified4 күн бұрын
AKG P220 with a Scarlet solo 2i2 I think it is called. It is pretty old gear (probably 10 years old), but it works great.
@litcoinwebservices2 күн бұрын
what plugin can help me display acount balance and transactions in a wordpress website
@TheMetalMag5 күн бұрын
this is going so fast!
@laszlovitticeps5 күн бұрын
I doubt that '100s of lines of JS'.. but indeed it is/will be a useful feature.
@bharatdubey835 күн бұрын
Waiting for your javascript backend course.
@sbogdaniuk5 күн бұрын
Wait, I did it with eaz 7 years before, I just put textarea absolute on top, with opacity 0, and it was just a metter of aligning styles inside div and textarea. What does that JS do?
@jdfv9i5 күн бұрын
Cool feature!
@RonaldGrootJebbink3 күн бұрын
For textareas you also can use `line-height: 3lh`. So it is always the height of 3 lines :)
@chrisdedavid18604 күн бұрын
How many times have I tried to do this with Textarea Dynamically loaded components
@adarsh9634Күн бұрын
How to nake this frow upward instead if downward?
@doctorDevZ5 күн бұрын
Insightful 🎉
@zyt4zcn5 күн бұрын
I think that until you specifically focus your attention on head wobbling, it actually makes his videos look more natural and gives the impression of more engaged storytelling. So, keep wobbling it, please.
@dmitryutkin98645 күн бұрын
is this prop resource-heavy - causing rerendering?
@ThomasGiles4 күн бұрын
I do it in like 3 lines of JS. I'm not sure why hundreds of lines are required, honestly. And it seems I'll still do for now. Will be cool when it's more supported.
@AmirHosseinBagheri5 күн бұрын
Hundreds of lines of codes 😂😂
@naimur6345 күн бұрын
we are waiting for a reverse scrollable scrollview
@threeone60122 күн бұрын
I will be deleting about 100 lines of JS and implementing this on a today. Safari and Firefox will get this sooner or later. Thank you!
@aymenbachiri-yh2hd4 күн бұрын
this is awesome
@andreistein24294 күн бұрын
Holy moly 😮
@3dchick3 күн бұрын
That's so cool!
@whynot99635 күн бұрын
I did this just the other day in less than 30lines. Not sure where did you get hundreds of lines 🤔
@m126525 күн бұрын
Personally I wouldn't want inputs to resize to content as the page layout would shift every time more space was required.
@redragon95885 күн бұрын
just put max width, max height
@m126525 күн бұрын
@ that wouldn't stop it automatically resizing unless they were the same as the min values...?
@gandalfgrey915 күн бұрын
I don’t believe that it’s 100’s of lines of js. There’s no way.
@gandalfgrey915 күн бұрын
function resizeTextarea(el) { el.style.height = 'auto'; el.style.height = el.scrollHeight + 'px'; } wow… so hard
@ivands165 күн бұрын
@@gandalfgrey91 Yea I was thinking the same thing. Almost seems like some youtubers don't know what the f there talking about XD
@geforcesong2 күн бұрын
nice, but it has competibility issue
@Momo-vy4xw5 күн бұрын
Kinda crazy that such a basic feature lands in 2025
@MonkeyDLuffy-t2b5 күн бұрын
Great content as always. Just one Request :- Can you please speak slowly ? My mother tongue is not English. Although I can understand English pretty well, keeping up with your speed is still hard.
@TN-es7ei5 күн бұрын
You can slow down the play speed to 75%.
@MonkeyDLuffy-t2b4 күн бұрын
@@TN-es7ei Obviously but the voice quality becomes really low. It is just annoying.
@DimaDumitru21 сағат бұрын
Why you kerp moving your head on right and left on the whole video? On every video on your channel😂😂😂
@prometheusvmorphs51835 күн бұрын
is this theo from teen wolf?
@samistube5 күн бұрын
Hundreds of lines and incredibly Hard to build, is the the clickbait of the year, as its literally an oneliner to attach height =scrollheight to an input event. Never needed that width expansion but similar thing for y axis i imagine.. Cool to have that in CSS tho, thanks for the info
@dtikvxcdgjbv79755 күн бұрын
Wow, nice
@jntaca5 күн бұрын
Great ! !
@Barnardrab3 күн бұрын
That is so cool! I'm going to immediately use it in my project.
@КириллТимофеев-п1л5 күн бұрын
Can I Use: 72.81%
@user875464 күн бұрын
Are you comfortable moving your head like that all the time?
@kettenbach5 күн бұрын
Date fail in the thumbnail sir. It's 2025 😃👍
@WebDevSimplified5 күн бұрын
Whoops. That is now fixed.
@kettenbach5 күн бұрын
@WebDevSimplified lol always love your content. Just thought you might want to fix it. 👍
@kennethguinto48622 күн бұрын
ok So now javascipt devs be like.. How Do we overengineer this...
@deatho0ne5875 күн бұрын
Only see textarea and only to max-height, content shift no thanks.
@rubenreyes20004 күн бұрын
This is nice, but unfortunately it's not widely supported.
@ullaskunderКүн бұрын
Great
@firiasu5 күн бұрын
I hate Safari, it is like Internet Explorer now, what you think?
@williamdiegocampos57833 күн бұрын
smart!
@rafyta75 күн бұрын
now we need the same for
@seanfrankruyter40085 күн бұрын
Too bad it's not baseline yet
@SaintHeiser4 күн бұрын
Caniuse says 72% of browsers supporting. Useless so far.
@PhilippBriese4 күн бұрын
It's not that difficult to do with JS, and it does not need hundreds of lines of code 😄
@Trinistar83Күн бұрын
I like your videos, but I find it very distracting, that you are shaking your head all the time, while speaking. I think you should disable the camera at all, so that the viewer can focus more on the content of the actual video.
@GoingOno5 күн бұрын
I didn't find it useful. As a frontend developer, I don't like when the input field moves around while the user is trying to enter information.
@craigkidd61975 күн бұрын
Great! You felt compelled to share this? I had to bother scrolling past it.
@majeedpanahi57832 сағат бұрын
I follow you frequently, but I find your supersonic speed a bit exhausting, especially for those whose English is not the mother tongue. Slow down buddy and thanks.
@danielcrompton78183 күн бұрын
Why is an iOS Swift developer watching this 🙂🙃🙂🙃🙂🙃
@nagualdesign4 күн бұрын
Could you please try to hold your head still. Imagine you were having a haircut.