sass each index

74

$i: 0;
@each $food in $top-foods {
  $i: $i + 1;
  &:nth-child(#{$i}){
    display: block;
  }
}

Comments

Submit
0 Comments