动画滚动实现从右到左滚动

.tag-center
      display flex
      align-items center
      position absolute
      width 500px
      height 50px
      line-height 50px
      text-align center
      left 40%
      top 120px
      border-radius 20px
      padding-left 20px
      color #fff
      transition all 1s ease
      background linear-gradient(90deg, #781423 0%, #17347D 97.73%)
      background-size 100%
      overflow hidden
      pointer-events auto
      cursor pointer
      .el-icon-close
        display inline-block
      .tag-aside
        display inline-block
        vertical-align center
        width 400px
        overflow hidden
      .tag-content
        display inline-block
        white-space nowrap
        animation 10s div linear infinite normal
      @keyframes div
        0%
          transform translateX(0px)
        100%
          transform translateX(-254px)
   <div class="tag-center" v-if="showDown">
          <i class="el-icon-close" style="margin-right:20px" @click="clickShowFalse"></i>
          <div class="tag-aside">
            <div class="tag-content">
              该浏览器不支持语音播放,请更换稳定版本的浏览器
            </div>
          </div>
        </div>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值