Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

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

Profilbild von jhey ▲🐻🎈
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 🙌

Profilbild von Kyle TechSquidTV
Kyle TechSquidTVvor 1 Jahr

Beautiful 👏

Profilbild von Steven
Stevenvor 1 Jahr

Bro you’re cooking on thanksgiving? Love it

Profilbild von jhey ▲🐻🎈
jhey ▲🐻🎈vor 1 Jahr

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

Profilbild von Marlon Stevenson
Marlon Stevensonvor 1 Jahr

Really sweet animation. Bookmarked.

Profilbild von Marcos Esqueda
Marcos Esquedavor 1 Jahr

How did you do the grid pattern?

Profilbild von Riaad Arif
Riaad Arifvor 1 Jahr

Hats off to you! 🎩

Profilbild von Abolfazl
Abolfazlvor 1 Jahr

That's so beautiful bro🤝

Profilbild von Patil Ketan
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 ?

Profilbild von Matthias Martin
Matthias Martinvor 1 Jahr

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

Ähnliche Videos