正在加载视频...
视频加载失败
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
9 条评论

Filigreti2 年前
@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 年前
I was looking for this effect, so NextJSy

Jan2 年前
so good, thanks for a quick tutorial!

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

R G2 年前
Nice! Thanks for sharing

Papa Jass 👍2 年前
Nice! Thanks for sharing

swk xiii 💐2 年前
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 年前
Nice! Thanks for sharing

Damiano Fusco2 年前
Very cool, thank you for sharing.

