正在加载视频...
视频加载失败
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' 🤙
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.
