loop

@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);

Last updated