逐渐加深对sass样式的引用的知识
变量的使用
循环的使用
@for $i from 1 through 3{
.slip-item:nth-child(#{$i}){
animation: animasFirst 3s infinite;
}
}
这个相当于for循环,从1到3,包括3
逐渐加深对sass样式的引用的知识
变量的使用
循环的使用
@for $i from 1 through 3{
.slip-item:nth-child(#{$i}){
animation: animasFirst 3s infinite;
}
}
这个相当于for循环,从1到3,包括3