Загрузка видео...

Не удалось загрузить видео

На главную

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 просмотров • 1 год назад •via X (Twitter)

Комментарии: 9

Фото профиля Ahmed ALABSI ❁
Ahmed ALABSI ❁1 год назад

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

Фото профиля jhey ▲🐻🎈
jhey ▲🐻🎈1 год назад

Made my own for CSS conversion 🤙

Фото профиля Charlie Joseph
Charlie Joseph1 год назад

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

Фото профиля Pablo Stanley
Pablo Stanley1 год назад

such a little but awesome detail 😊

Фото профиля Arman Kazi
Arman Kazi1 год назад

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

Фото профиля Cypher
Cypher1 год назад

So pretty

Фото профиля Enicma
Enicma1 год назад

Nice trick! What about mobile devices?

Фото профиля Sa-Senpai
Sa-Senpai1 год назад

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

Фото профиля EIO
EIO1 год назад

Brilliant! 😅

Похожие видео