css制作类抖音logo

欢迎访问我的博客地址 : 博客地址

css制作类抖音logo

源码如下:

//html
  <div class="wrapperMain">
    <div class="wrapperText">
      <div class="line"></div>
    </div>
  </div>

用的scss语法,大家可以按css修改嵌套,其中&为.wrapperText

//css
.wrapperMain {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: black;
  .wrapperText {
    position: relative;
    margin: auto;
    width: 215px;
    height: 100px;
    font-size: 70px;
    background-color: black;
    transform: scale(2);
    .line {
      position: absolute;
      width: 100%;
      height: 1px;
      background: #000;
      z-index: 1;
      animation: lineMove 5s ease-out infinite;
    }
    &::before {
      position: absolute;
      content: "网易云";
      top: 0;
      left: 0px;
      color: red;
      text-shadow: 1px 0 0 red;
      animation: move 0.95s infinite;
    }
    &::after {
      position: absolute;
      content: "网易云";
      top: 0;
      left: -3px;
      color: cyan;
      text-shadow: -1px 0 0 cyan;
      animation: move 1.1s infinite 0.2s;
      mix-blend-mode: lighten;
    }
  }
}
@keyframes lineMove {
  9% {
    top: 38px;
  }
  14% {
    top: 8px;
  }
  18% {
    top: 42px;
  }
  22% {
    top: 1px;
  }
  32% {
    top: 32px;
  }
  34% {
    top: 12px;
  }

  40% {
    top: 26px;
  }
  43% {
    top: 7px;
  }

  99% {
    top: 30px;
  }
}
@keyframes move {
  10% {
    top: -0.4px;
    left: -1.1px;
  }
  20% {
    top: 0.4px;
    left: -0.2px;
  }
  30% {
    left: 0.5px;
  }

  40% {
    top: -0.3px;
    left: -0.7px;
  }
  50% {
    left: 0.2px;
  }

  60% {
    top: 1.8px;
    left: -1.2px;
  }
  70% {
    top: -1px;
    left: 0.1px;
  }
  80% {
    top: -0.4px;
    left: -0.9px;
  }
  90% {
    left: 1.2px;
  }
  100% {
    left: -1.2px;
  }
}
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

小钱要努力

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值