Video wird geladen...
Video konnte nicht geladen werden
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 Aufrufe • vor 1 Jahr •via X (Twitter)
10 Kommentare

jhey ▲🐻🎈vor 1 Jahr
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 TechSquidTVvor 1 Jahr
Beautiful 👏

Stevenvor 1 Jahr
Bro you’re cooking on thanksgiving? Love it

jhey ▲🐻🎈vor 1 Jahr
not now - i'm waitin' for the cookin' 💀 got the game on, Steam Deck in hand 😇

Marlon Stevensonvor 1 Jahr
Really sweet animation. Bookmarked.

Marcos Esquedavor 1 Jahr
How did you do the grid pattern?

Riaad Arifvor 1 Jahr
Hats off to you! 🎩

Abolfazlvor 1 Jahr
That's so beautiful bro🤝

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

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