Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

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,666 görüntüleme • 1 yıl önce •via X (Twitter)

10 Yorum

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

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

Arsyad profil fotoğrafı
Arsyad1 yıl önce

silky tooltip @silkysignon

ANOOP profil fotoğrafı
ANOOP1 yıl önce

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

Erik Rasmussen 👨‍💻🇺🇸🇪🇸 profil fotoğrafı
Erik Rasmussen 👨‍💻🇺🇸🇪🇸1 yıl önce

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 ▲🐻🎈 profil fotoğrafı
jhey ▲🐻🎈1 yıl önce

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 धीरज पुरोहित ⭕❗⭕ profil fotoğrafı
Dheeraj Purohit धीरज पुरोहित ⭕❗⭕1 yıl önce

@Sikandar_Bhide

Robin Stoytchev profil fotoğrafı
Robin Stoytchev1 yıl önce

Codepen posted? Really nice 🙌

Private WIFI profil fotoğrafı
Private WIFI1 yıl önce

Wen book release

Brian profil fotoğrafı
Brian1 yıl önce

Instead of Pinball Wizard, you're a CSS Wizard

Ayan Patel profil fotoğrafı
Ayan Patel1 yıl önce

👏

Benzer Videolar