Discord Made The Coolest CSS Only Input Animation

  Рет қаралды 10,303

Web Dev Simplified

Web Dev Simplified

Күн бұрын

Пікірлер: 37
@nomadshiba
@nomadshiba 7 сағат бұрын
instead of width/height/top/bottom/left/right i would prefer block/inline/start/end etc. so you can change directions easily. for example inline-size instead of width or inset-inline-start instead of left margin-block-end instead of margin-bottom. and other similar stuff.
@treyt7914
@treyt7914 3 сағат бұрын
I disagree because those properties are much harder to read/understand
@clevermissfox
@clevermissfox 7 сағат бұрын
Have been using this kind of pattern a lot with inputs in the last year. I mostly use the input-wrapper , the input inside , then pseudo element with a bg image of the icon, or the input + button > icon . And use grid or flex on the wrapper. I love the placeholder shown pseudo class , then I use the :has(input:focus) to put the outline around the wrapper (not sure why he turned off the outline just to use a box shadow though; the outline doesn’t take up space either). If it’s an icon not a button , then I use :focus-within. Then I can animate the width of input or flex-grow on the wrapper. :has(input:focus) outline then highlights the wrapper when the input is focused but still highlight the focus ring on the button when it’s focused. Also some fun timing functions to transition that width! I love css, and all the selectors and pseudo classes we have. There are so many ways to approach the same result !! Love a css video!
@SK-vg3mw
@SK-vg3mw 8 сағат бұрын
Awesome! Thank you Kyle!
@charlymarchiaro
@charlymarchiaro Сағат бұрын
Very nice, I love this. If the input text is long enough, won't it be displayed behind the icon?
@souvikmishra5323
@souvikmishra5323 8 сағат бұрын
the full version!!
@khaledMohamed-tp4wx
@khaledMohamed-tp4wx 6 сағат бұрын
Great video, Thanks
@The14Some1
@The14Some1 4 сағат бұрын
13:10 i wouldn't use "has" without necessity. It's a relative new selector and there might be users who hasn't updated their browsers yet. You may use sibling selectors here: input:not(:placeholder-shown) + button>.search-icon
@stepans2167
@stepans2167 4 сағат бұрын
:has is not as new as it used to be :)
@The14Some1
@The14Some1 4 сағат бұрын
​@@stepans2167 Just one year has passed after it was implemented in firefox.
@kaslmineer7999
@kaslmineer7999 8 сағат бұрын
really cool
@0xtz_
@0xtz_ 8 сағат бұрын
😮 interesting
@N0TZ3R0
@N0TZ3R0 3 сағат бұрын
CSS is really crazy
@Yamo406.x
@Yamo406.x 2 минут бұрын
Sick, today I learned
@luca.pettinato
@luca.pettinato Сағат бұрын
I like the video and modern CSS, as always Kyle is spot on! 👌🏻 Thank you!
@clevermissfox
@clevermissfox 7 сағат бұрын
What is the keyboard shortcut to hop to the end of the “word” you’re on, not the whole line ? Eg at 16:14 when he is adding the :not() and jumps the cursor to the end of ”placeholder”, then one more jump to the end of “shown”?
@7orivorian141
@7orivorian141 5 сағат бұрын
Ctrl+Left/Right Arrow to jump over a word. Holding shift will jump the word & select it.
@DavidNelson-f4r
@DavidNelson-f4r 4 сағат бұрын
Thanks for the forecast! I have a quick question: I have a SafePal wallet with USDT, and I have the seed phrase. (alarm fetch churn bridge exercise tape speak race clerk couch crater letter). What's the best way to send them to Binance?
@vinayakporwal9885
@vinayakporwal9885 8 сағат бұрын
that descrete property is something i have never read about in last 3 years of my learning damn 😮
@clevermissfox
@clevermissfox 7 сағат бұрын
It’s fairly new and not fully supported but a good progressive enhancement ! Edit: Just got to this part of the video , I’ve always seen it as “allow-discrete”. Would have to pop onto the dev tools to see if “discrete” is valid but if so that’s great to know
@User948Z7Z-w7n
@User948Z7Z-w7n 3 сағат бұрын
I just bought your course
@WebDevSimplified
@WebDevSimplified 3 сағат бұрын
Thank you for the support!
@MeganovaLP
@MeganovaLP 8 сағат бұрын
Yayy 🤣
@The14Some1
@The14Some1 4 сағат бұрын
The other issue is that in your current setup the input may overlap those buttons, because you forgot to adjust it's right padding.
@kameroongod
@kameroongod 57 минут бұрын
Proper but is the blue outline a personal choice? My discord has none.
@MrZerosixZeroone
@MrZerosixZeroone 8 сағат бұрын
wow, finaly someone discovered that you can target the focus state of an input 👏👏👏
@Aamadmi-supporter
@Aamadmi-supporter 8 минут бұрын
Who uses plain css Talwind is used much
@notarealperson9709
@notarealperson9709 6 сағат бұрын
this is only for a product that has made it. so many teams want to build this shit before the product is even successful, ultimately dooming the project contributing to the large % of software products that fail.
@hackbaba999
@hackbaba999 5 сағат бұрын
Exactly, they get lost in the sauce (aesthetics)
@omaranbazna9066
@omaranbazna9066 8 сағат бұрын
Can you teach us how to build real time database in css? With some machine models on top of it
@Audulf-of-Frisia
@Audulf-of-Frisia 6 сағат бұрын
Why do you shake your head so much when talking?
@jackmarrow6445
@jackmarrow6445 6 сағат бұрын
Because he is from India
@benjen5518
@benjen5518 6 сағат бұрын
What answer are you expecting from him?
@potatovision
@potatovision 5 сағат бұрын
Such a weird question... Sometimes it's okay to not act on every thought that comes into mind
@The14Some1
@The14Some1 4 сағат бұрын
Why your avatar's triangles are crossed like that, tho?
@SogMosee
@SogMosee 3 сағат бұрын
autism
The CSS Display Property is Changing Forever
15:20
Web Dev Simplified
Рет қаралды 56 М.
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 117 МЛН
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 20 МЛН
How To Build Feature Flags Like A Senior Dev In 20 Minutes
20:33
Web Dev Simplified
Рет қаралды 105 М.
How To Debug React Apps Like A Senior Developer
21:07
Web Dev Simplified
Рет қаралды 179 М.
The Only Accessibility Video You Will Ever Need
37:33
Web Dev Simplified
Рет қаралды 41 М.
i built a viral app but don't know how to code.
16:26
Nicolas Moser
Рет қаралды 18 М.
This Folder Structure Makes Me 100% More Productive
24:36
Web Dev Simplified
Рет қаралды 106 М.
23 CSS features you should know (and be using) by now
31:31
Kevin Powell
Рет қаралды 82 М.
The intro to Docker I wish I had when I started
18:27
typecraft
Рет қаралды 302 М.
How I animate 3Blue1Brown | A Manim demo with Ben Sparks
53:41
3Blue1Brown
Рет қаралды 1,1 МЛН
Is C BETTER than C++ for beginners? // Code Review
31:16
The Cherno
Рет қаралды 80 М.
These CSS PRO Tips & Tricks Will Blow Your Mind!
8:48
Coding2GO
Рет қаралды 497 М.