Video yükleniyor...
Video Yüklenemedi
CSS Tip! 💪 You can create these tab controls with CSS :has() + radio buttons ✨ .tabs:has(input:nth-of-type(3)) { --count: 3; } .tabs:has(:checked:nth-of-type(3)) { --active: 2; } .tabs::after { translate: calc(var(--active, 0) * 100%) 0; width: calc(100% / var(--count)); } Two CSS :has() tricks here combined with a rendering trick... show more
437,300 görüntüleme • 2 yıl önce •via X (Twitter)
9 Yorum

jhey ▲🐻🎈2 yıl önce
Here's that @CodePen link! 🚀 Remember, CSS :has() is available in all the major browsers now 👀 It's a great time to start getting familiar with it ⭐️

toprakcavusdag.js2 yıl önce
That's super. Thank you for sharing us

jhey ▲🐻🎈2 yıl önce
More than welcome! 🙏

Kay 🇮🇪2 yıl önce
Tried to find it for tailwind but no luck!?

Carlito2 yıl önce
Sorcery!

JEM2 yıl önce
still wrapping my head around :has() 😵💫

jhey ▲🐻🎈2 yıl önce
Wrote this one in 2022 that might help 🤙 Got some much cooler demos to show off for it now though 😁

randomhuman2 yıl önce
Beautiful 👌

Souvik Bhattacharjee2 yıl önce
Nice 🔥
