正在加载视频...

视频加载失败

And here's that Codepen refactored as promised using sibling-index()

11,067 次观看 • 1 年前 •via X (Twitter)

5 条评论

Una 🇺🇦 的头像
Una 🇺🇦1 年前

always has good stuff covered: And more here too from @monknow_dev:

Gilbert Matos | Nodejs/Nextjs/C# 的头像
Gilbert Matos | Nodejs/Nextjs/C#1 年前

absolutely incredible. CSS is love, CSS is life. Tysm for sharing Una!

𝘼𝙂𝙆 🦕 的头像
𝘼𝙂𝙆 🦕1 年前

Great stuff. 👏 Thanks for sharing.

Luke Edwards 的头像
Luke Edwards1 年前

Very cool! Curious what the reasoning was for non-zero indexing though

Una 🇺🇦 的头像
Una 🇺🇦1 年前

I missed most of the feature dev on this one but I imagine its because of consistency with nth-child

相关视频