Loading video...
Video Failed to Load
CSS Trick 🤙 You can create these tab bar controls by using :has() to count the number of tabs ⭐️ .tabs:has(input:nth-of-type(3)){--count: 3;} .tabs:has(:checked:nth-of-type(3)){--active: 200%;} .tabs::after{ translate:var(--active) 0;} Let's break it down in this ! 📼 Couple of CSS :has() tricks here combined with custom properties 😎 First things first,... show more
70,670 views • 2 years ago •via X (Twitter)
9 Comments

Filigreti2 years ago
@jhey I ended up doing something like this after an hour of work of multiple hidden divs .. i was wondering if you had a simpler method

Ofek Asido2 years ago
I was looking for this effect, so NextJSy

Jan2 years ago
so good, thanks for a quick tutorial!

jhey ▲🐻🎈2 years ago
It's in the post below 🤙 But, here it is again ⭐️

R G2 years ago
Nice! Thanks for sharing

Papa Jass 👍2 years ago
Nice! Thanks for sharing

swk xiii 💐2 years ago
I ended up doing something like this after an hour of work of multiple hidden divs .. i was wondering if you had a simpler method

7🪞2 years ago
Nice! Thanks for sharing

Damiano Fusco2 years ago
Very cool, thank you for sharing.

