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

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

На главную

sliding hover tip effect with CSS :has() and anchor positioning ✨ :root:has(li:nth-of-type(3):hover) { --i: 3; } .track { translate: 0 calc(var(--i) * -1lh); nav { anchor-name: --nav; } .tip { position-anchor: --nav; left: calc(anchor(right) + 1rem); }

164,722 просмотров • 2 лет назад •via X (Twitter)

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

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

here's the @CodePen for this one 🚀 updated it so you can explicitly define the flow of how the text slides 🤙

Фото профиля Arsyad
Arsyad2 лет назад

silky tooltip @silkysignon

Фото профиля ANOOP
ANOOP2 лет назад

Looks cool For the the Horizontal menu the text moving sideways would have looked super cool

Фото профиля Erik Rasmussen 👨‍💻🇺🇸🇪🇸
Erik Rasmussen 👨‍💻🇺🇸🇪🇸2 лет назад

I assume this is okay for a11y, because "tooltips as divs" are ignored by screen readers, and the information is portrayed through other means?

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

Yeah, for that reason [aria-hidden] on the tip itself and readable navigation links with a class to visually hide them but not from screen readers 🤙

Фото профиля Dheeraj Purohit धीरज पुरोहित ⭕❗⭕
Dheeraj Purohit धीरज पुरोहित ⭕❗⭕2 лет назад

@Sikandar_Bhide

Фото профиля Robin Stoytchev
Robin Stoytchev2 лет назад

Codepen posted? Really nice 🙌

Фото профиля Private WIFI
Private WIFI2 лет назад

Wen book release

Фото профиля Brian
Brian2 лет назад

Instead of Pinball Wizard, you're a CSS Wizard

Фото профиля Ayan Patel
Ayan Patel2 лет назад

👏

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