JavaScript
fromSmashing Magazine
22 hours agoAdvanced Tree Counting: Mathematical Layouts With sibling-index() And sibling-count() - Smashing Magazine
Use sibling-index() and sibling-count() to compute per-item animation delays in CSS without nth-child rules or JavaScript, supporting any list length.