#sibling-index

[ follow ]
Web development
fromCSS-Tricks
1 week ago

Responsive List of Avatars Using Modern CSS (Part 2) | CSS-Tricks

Use CSS offset-path with offset-distance calculated from sibling-index()/sibling-count() to arrange responsive avatar images evenly around a circle.
Web development
fromCSS-Tricks
2 months ago

Sequential linear() Animation With N Elements | CSS-Tricks

Use sibling-index() and sibling-count() with the linear() timing function to create automatically staggered sequential animations for any number of sibling elements.
Web development
fromUtilitybend
2 months ago

Styling siblings with CSS has never been easier. Experimenting with sibling-count and sibling-index | utilitybend

sibling-index() and sibling-count() enable selecting elements by position among siblings, simplifying staggered animations and conditional CSS logic.
[ Load more ]