Advanced Tree Counting: Mathematical Layouts With `sibling-index()` And `sibling-count()`
Meet `sibling-index()` and `sibling-count()`. Staggered cascade effect in one line of CSS without `:nth-child()` rules or JS workarounds. Works for 5 items or 5,000.
PRISM indexes and ranks — it never republishes. The full piece lives with its author on smashingmagazine.com.
Read on smashingmagazine.com