源代码
li{
&:nth-child(1){
animation-delay: 0;
}
&:nth-child(2){
animation-delay: 0.2s;
}
&:nth-child(3){
animation-delay: 0.4s;
}
&:nth-child(4){
animation-delay: 0.6s;
}
}
源代码
li{
&:nth-child(1){
animation-delay: 0;
}
&:nth-child(2){
animation-delay: 0.2s;
}
&:nth-child(3){
animation-delay: 0.4s;
}
&:nth-child(4){
animation-delay: 0.6s;
}
}
@for $i from 1 to 7 {
li:nth-child(#{$i}) {
animation-delay: #{($i - 1) * 0.2}s;
}
}
2 回答914 阅读✓ 已解决
3 回答826 阅读✓ 已解决
4 回答1.3k 阅读✓ 已解决
2 回答1.3k 阅读✓ 已解决
2 回答1.1k 阅读✓ 已解决
2 回答2.6k 阅读
1 回答1.1k 阅读✓ 已解决