Загрузка видео...
Не удалось загрузить видео
use CSS :has() & :user-valid/invalid to power form micro-interactions .group:has(:valid) { --color: var(--valid); } input:user-invalid + .error { display: block; } :user-valid/invalid detects if an input is valid and if it has been interacted with 🔥 no js dirty checkin' 🤙
53,347 просмотров • 1 год назад •via X (Twitter)
Комментарии: 10

jhey ▲🐻🎈1 год назад
here's the @CodePen link! 🚀 got a request for this in "the other place™" so threw together a new demo now that :user-valid/invalid has good support 🙌

Kyle TechSquidTV1 год назад
Beautiful 👏

Steven1 год назад
Bro you’re cooking on thanksgiving? Love it

jhey ▲🐻🎈1 год назад
not now - i'm waitin' for the cookin' 💀 got the game on, Steam Deck in hand 😇

Marlon Stevenson1 год назад
Really sweet animation. Bookmarked.

Marcos Esqueda1 год назад
How did you do the grid pattern?

Riaad Arif1 год назад
Hats off to you! 🎩

Abolfazl1 год назад
That's so beautiful bro🤝

Patil Ketan1 год назад
I love your design I try to make it useing ai but I can’t can you give me any idea ?

Matthias Martin1 год назад
Would be cool to have a CSS only solution for different error messages depending on the input.
