#CSS sibling-index() and sibling-count()
available Chrome Canary with experiments enabled!
`transition-delay: calc(sibling-index() * .1s);`
or
```css
--hue: calc(sibling-index() * 50);
color: oklch(70% 70% var(--hue));
```
more info and a Codepen to fork
⤷

nerdy.dev
Let the stagger experiments begin · March 11, 2025
Elements can now know which position they are in the DOM tree (index) and how many other elements there are in total (count).







