Post
While I didn’t use the mechanics used by @jhey.dev, the idea to use this effect came from one of his tweets. I did try to use anchors but it seems it can’t be done from JS? The table I have here is dynamically generated from a program written in a DSL I wrote for the post. bsky.app/profile/jhey...
CSS-only magnetic link effect 🤯 li:has(a:is(:hover, :focus-visible)) {anchor-name: --a; } ul::before { left: anchor(--a left); width: anchor-size(--a width); } using CSS anchor positioning, declare an anchor on hover for the indicator 🚀
0 reposts3 likes
No replies yet.