Video yükleniyor...
Video Yüklenemedi
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 görüntüleme • 2 yıl önce •via X (Twitter)
10 Yorum

jhey ▲🐻🎈2 yıl önce
here's the @CodePen for this one 🚀 updated it so you can explicitly define the flow of how the text slides 🤙

Arsyad2 yıl önce
silky tooltip @silkysignon

ANOOP2 yıl önce
Looks cool For the the Horizontal menu the text moving sideways would have looked super cool

Erik Rasmussen 👨💻🇺🇸🇪🇸2 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 ▲🐻🎈2 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 धीरज पुरोहित ⭕❗⭕2 yıl önce
@Sikandar_Bhide

Robin Stoytchev2 yıl önce
Codepen posted? Really nice 🙌

Private WIFI2 yıl önce
Wen book release

Brian2 yıl önce
Instead of Pinball Wizard, you're a CSS Wizard

Ayan Patel2 yıl önce
👏
