Video wird geladen...
Video konnte nicht geladen werden
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 Aufrufe • vor 2 Jahren •via X (Twitter)
9 Kommentare

Filigretivor 2 Jahren
@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 Asidovor 2 Jahren
I was looking for this effect, so NextJSy

Janvor 2 Jahren
so good, thanks for a quick tutorial!

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

R Gvor 2 Jahren
Nice! Thanks for sharing

Papa Jass 👍vor 2 Jahren
Nice! Thanks for sharing

swk xiii 💐vor 2 Jahren
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🪞vor 2 Jahren
Nice! Thanks for sharing

Damiano Fuscovor 2 Jahren
Very cool, thank you for sharing.

