正在加载视频...
视频加载失败
CSS Tip! ⚡️ Use :has() to style siblings in both directions ↔️ li:has(+ li :checked) { width: var(--not-feature-width); } Was asked how close you could get to "that" Stripe gallery effect 🤔 So gave it a go on the flight back from Prague! ✈️ CodePen.IO link below! 👇
10 条评论

jhey ▲🐻🎈3 年前
Here's that @CodePen link! 🚀 One day you'll get support in Firefox 🤞

jhey ▲🐻🎈3 年前
* How close you could get without JavaScript that is

TOMAZKI3 年前
@CodePen Don't use :has() Feature is awesome but browser compatibility is too low

jhey ▲🐻🎈3 年前
@CodePen I'm aware. I wrote about it last year.

Obinna Ekwuno3 年前
@CodePen Yo @ekwonye check this out

Lucas Leal 🟣3 年前
@CodePen This has (pun intended) no support on firefox, right?

Lucca Tisser3 年前
@CodePen Love your content !!

Martynas_3 年前
@CodePen Uuuu, nice tip, I also tried to recreate this slider.

Lucas Sacheto3 年前
@CodePen Suggestion: I would love to see the Apple TV apps effect

jhey ▲🐻🎈3 年前
@eusouoluks @CodePen Got a clip? 🧐
