sass动画循环引入图片

@keyframes move {
  @for $i from 0 through 79 {
    #{($i * 100%/79)} {
      //   background-image: url(./img/#{$i}.png);
      @if ($i < 10) {
        background-image: url(https://lishiots.oss-cn-hangzhou.aliyuncs.com/webstatic/wangmangling/pc/animation/wanggif_0000#{$i}.png);
      } @else {
        background-image: url(https://lishiots.oss-cn-hangzhou.aliyuncs.com/webstatic/wangmangling/pc/animation/wanggif_000#{$i}.png);
      }
    }
  }
}

  

posted @ 2022-07-06 09:26  谁动了我的苹果  阅读(51)  评论(0编辑  收藏  举报