Articles on Smashing Magazine | For Web Designers And Developers 日本語 フォロー 高度なツリーカウント:sibling-index() と sibling-count() を使用した数学的レイアウト sibling-index() と sibling-count() をご紹介します。:nth-child() ルールやJSの回避策なしで、CSS1行でスタッガードカスケード効果を実現します。5個のアイテムでも5,000個のアイテムでも動作します。 Advanced Tree Counting: Mathematical Layouts With `sibling-index()` And `sibling-count()` smashingmagazine.com Articles on Smashing Magazine | For Web Designers And Developers 日本語 RSS thenote.app
sibling-index()とsibling-count()をご紹介します。:nth-child()ルールやJSの回避策なしで、CSS1行でスタッガードカスケード効果を実現します。5個のアイテムでも5,000個のアイテムでも動作します。