源代码
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;
}
}
3 回答5.1k 阅读✓ 已解决
5 回答2k 阅读
2 回答1.9k 阅读✓ 已解决
1 回答3k 阅读✓ 已解决
3 回答2.4k 阅读
4 回答2.2k 阅读
2 回答973 阅读✓ 已解决