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

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

На главную

Future CSS Tip! 🔮 Anchor Positioning lets you anchor elements to others with CSS alone 👍 It can also work out positioning if an element gets clipped by a container, window, etc. Think "Common floating UI uses with no JS" 🤯 .el { bottom: anchor(--link top); } Just CSS 👇

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

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

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

If you want to see this demo in action, here's the @CodePen link! 🤙 You'll need to be in Chrome Canary with the "Experimental Web Platform Features" flag enabled ⛳️ This one anchors Popovers using the Popover API 😎

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

And here's an article I put together all about Anchor Positioning that looks into some of the main parts of this CSS API 👀

Фото профиля Andreas Eracleous
Andreas Eracleous2 лет назад

This is great! tip! thanks you for sharing

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

It'll be pretty cool when/if it lands in other browsers! 💯

Фото профиля blah
blah2 лет назад

Unrelated question but when is it the right time to implement these new css features? Browser support can widely vary and many systems will still run old browser version so what's the recommended way to go about this?

Фото профиля AellL
AellL2 лет назад

@SaveToNotion #thread #css

Фото профиля Shripal Soni
Shripal Soni2 лет назад

Wow! This will be really very helpful 🤩

Фото профиля Marina Luna
Marina Luna2 лет назад

🤯!

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

Whoa…

Фото профиля Joshua Riley
Joshua Riley2 лет назад

A @tailwindcss version of this would be amazing

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