Stylize sibling elements with additive transforms

后端 未结 1 1171

I\'ve been trying to achieve the following without having to declare all the nth-of-type(x):

相关标签:
1条回答
  • 2021-01-27 16:51

    Unfortunately not. The only way i would know of is to give every li a class, but that would just shift the problem.

    However there are loops in CSS Preprocessors like less or Sass, where you could iterate though the list and make the transform value smaller or bigger.

    Less Loops

    0 讨论(0)
提交回复
热议问题