Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

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 Aufrufe • vor 1 Jahr •via X (Twitter)

9 Kommentare

Profilbild von Ahmed ALABSI ❁
Ahmed ALABSI ❁vor 1 Jahr

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

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

Made my own for CSS conversion 🤙

Profilbild von Charlie Joseph
Charlie Josephvor 1 Jahr

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

Profilbild von Pablo Stanley
Pablo Stanleyvor 1 Jahr

such a little but awesome detail 😊

Profilbild von Arman Kazi
Arman Kazivor 1 Jahr

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

Profilbild von Cypher
Cyphervor 1 Jahr

So pretty

Profilbild von Enicma
Enicmavor 1 Jahr

Nice trick! What about mobile devices?

Profilbild von Sa-Senpai
Sa-Senpaivor 1 Jahr

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

Profilbild von EIO
EIOvor 1 Jahr

Brilliant! 😅

Ähnliche Videos