首页 > 技术文章 > sass 中使用for 循环以及随机数

-youth 2020-11-05 10:39 原文

@for $i from 1 through 18
{
    .dot-posi#{$i}
    {
       animation:change 2s ease-in-out (random(5) + 1) + s infinite alternate;
    }
}

推荐阅读