Загрузка видео...
Не удалось загрузить видео
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,367 просмотров • 2 лет назад •via X (Twitter)
Комментарии: 9

Ahmed ALABSI ❁2 лет назад
You can generate custom easing functions for css using this tool PSA: the website is not mobile friendly

jhey ▲🐻🎈2 лет назад
Made my own for CSS conversion 🤙

Charlie Joseph2 лет назад
I didn’t realise native CSS had spring animations now! I always thought it was a JS thing

Pablo Stanley2 лет назад
such a little but awesome detail 😊

Arman Kazi2 лет назад
Can you make this transition from one direction every time you hover it ?and not reversing when u hover the second time

Cypher2 лет назад
So pretty

Enicma2 лет назад
Nice trick! What about mobile devices?

Sa-Senpai2 лет назад
aha ! how come I didn't think of this before !

EIO2 лет назад
Brilliant! 😅
