Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

Directional aware CSS button :hover w/ lh, text-shadow, and linear() button:has(span:nth-of-type(2):hover) { --y: -1lh; } button span:first-of-type { translate: 0 var(--y); transition: translate .875s var(--spring); text-shadow: 0 1lh currentColor, 0 -1lh currentColor; }

40,229 görüntüleme • 1 yıl önce •via X (Twitter)

9 Yorum

Ahmed ALABSI ❁ profil fotoğrafı
Ahmed ALABSI ❁1 yıl önce

You can generate custom easing functions for css using this tool PSA: the website is not mobile friendly

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

Made my own for CSS conversion 🤙

Charlie Joseph profil fotoğrafı
Charlie Joseph1 yıl önce

I didn’t realise native CSS had spring animations now! I always thought it was a JS thing

Pablo Stanley profil fotoğrafı
Pablo Stanley1 yıl önce

such a little but awesome detail 😊

Arman Kazi profil fotoğrafı
Arman Kazi1 yıl önce

Can you make this transition from one direction every time you hover it ?and not reversing when u hover the second time

Cypher profil fotoğrafı
Cypher1 yıl önce

So pretty

Enicma profil fotoğrafı
Enicma1 yıl önce

Nice trick! What about mobile devices?

Sa-Senpai profil fotoğrafı
Sa-Senpai1 yıl önce

aha ! how come I didn't think of this before !

EIO profil fotoğrafı
EIO1 yıl önce

Brilliant! 😅

Benzer Videolar