> For the complete documentation index, see [llms.txt](https://bvct1742.gitbook.io/one-book/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bvct1742.gitbook.io/one-book/knowledge/less/loop.md).

# loop

```css
@customer_normal_list: @customer_1_normal,
  @customer_2_normal,
  @customer_3_normal,
  @customer_4_normal,
  @customer_5_normal,
  @customer_6_normal;
@customer_hover_list: @customer_1_hover,
  @customer_2_hover,
  @customer_3_hover,
  @customer_4_hover,
  @customer_5_hover,
  @customer_6_hover;

.loop(@i) when (@i < length(@customer_normal_list) + 1) {
  .customer_@{i}_normal {
    .sprite(4.6vw, 4.6vw, extract(@customer_normal_list, @i));
  }

  .customer_@{i}_hover {
    .sprite(4.6vw, 4.6vw, extract(@customer_hover_list, @i));
  }

  .loop(@i+1);
}

.loop(1);
```
