正在加载视频...

视频加载失败

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 ▲🐻🎈 的头像
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 TechSquidTV 的头像
Kyle TechSquidTV1 年前

Beautiful 👏

Steven 的头像
Steven1 年前

Bro you’re cooking on thanksgiving? Love it

jhey ▲🐻🎈 的头像
jhey ▲🐻🎈1 年前

not now - i'm waitin' for the cookin' 💀 got the game on, Steam Deck in hand 😇

Marlon Stevenson 的头像
Marlon Stevenson1 年前

Really sweet animation. Bookmarked.

Marcos Esqueda 的头像
Marcos Esqueda1 年前

How did you do the grid pattern?

Riaad Arif 的头像
Riaad Arif1 年前

Hats off to you! 🎩

Abolfazl 的头像
Abolfazl1 年前

That's so beautiful bro🤝

Patil Ketan 的头像
Patil Ketan1 年前

I love your design I try to make it useing ai but I can’t can you give me any idea ?

Matthias Martin 的头像
Matthias Martin1 年前

Would be cool to have a CSS only solution for different error messages depending on the input.

相关视频