Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

Update... All you need is this for a 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); } Create an anchor on hover, makes sense! 🤦‍♂️ h/t @yassi_lah for the push 🤙

194,760 Aufrufe • vor 2 Jahren •via X (Twitter)

8 Kommentare

Profilbild von jhey ▲🐻🎈
jhey ▲🐻🎈vor 2 Jahren

This one is an absolute gift IMO 🎁 Nukes a lot of JS There are also a couple of other CSS Anchor Positioning pieces that once they get implemented will streamline things a little more 🤏

Profilbild von Le Dev ULTIME
Le Dev ULTIMEvor 2 Jahren

@yassi_lah what do you use for the animation zooms etc?

Profilbild von Azat S.
Azat S.vor 2 Jahren

@yassi_lah Waiting for support 😀

Profilbild von Andy Ingram 🌀
Andy Ingram 🌀vor 2 Jahren

@yassi_lah That’s how the one I shared earlier works

Profilbild von jhey ▲🐻🎈
jhey ▲🐻🎈vor 2 Jahren

@yassi_lah You could have that in a sense though, right? For <nav> related anchors, you could reserve the name --nav-anchor for example. You're only going to be using it at any one time as you wouldn't be able to hover multiple navs at once 🤔

Profilbild von Jorge Baumann.js
Jorge Baumann.jsvor 2 Jahren

@yassi_lah 🥹 Can you stop posting so many cool demos? 😵 I can't follow you haha

Profilbild von joseph morgan
joseph morganvor 2 Jahren

@yassi_lah Damnnn @jh3yy just makes day better 🥺❤️

Profilbild von daniel feles
daniel felesvor 2 Jahren

@yassi_lah simple and clean :)

Ähnliche Videos