Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

sass each index

$i: 0;
@each $food in $top-foods {
  $i: $i + 1;
  &:nth-child(#{$i}){
    display: block;
  }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sass #index
ADD COMMENT
Topic
Name
5+3 =