Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

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 görüntüleme • 1 yıl önce •via X (Twitter)

10 Yorum

jhey ▲🐻🎈 profil fotoğrafı
jhey ▲🐻🎈1 yıl önce

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 profil fotoğrafı
Kyle TechSquidTV1 yıl önce

Beautiful 👏

Steven profil fotoğrafı
Steven1 yıl önce

Bro you’re cooking on thanksgiving? Love it

jhey ▲🐻🎈 profil fotoğrafı
jhey ▲🐻🎈1 yıl önce

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

Marlon Stevenson profil fotoğrafı
Marlon Stevenson1 yıl önce

Really sweet animation. Bookmarked.

Marcos Esqueda profil fotoğrafı
Marcos Esqueda1 yıl önce

How did you do the grid pattern?

Riaad Arif profil fotoğrafı
Riaad Arif1 yıl önce

Hats off to you! 🎩

Abolfazl profil fotoğrafı
Abolfazl1 yıl önce

That's so beautiful bro🤝

Patil Ketan profil fotoğrafı
Patil Ketan1 yıl önce

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

Matthias Martin profil fotoğrafı
Matthias Martin1 yıl önce

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

Benzer Videolar