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