#sibling-index

[ follow ]
Web development
fromCSS-Tricks
2 weeks 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
3 weeks 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 ]