css 文字光影特效

css 复制代码
 <style>
      .text-area{
          text-align: center;
      }
      span{
          font-weight: bold;
          font-size:70px;
          color:#faebd7;
          animation:shadowing 1s ease-in-out infinite alternate;
      }
      span:nth-child(n+2){
          animation-delay: 0.2s;
      }
      span:nth-child(n+3){
          animation-delay: 0.4s;
      }
      span:nth-child(n+4){
          animation-delay: 0.4s;
      }
      span:nth-child(n+5){
          animation-delay: 0.5s;
      }
      span:nth-child(n+6){
          animation-delay: 0.6s;
      }
      span:nth-child(n+7){
          animation-delay: 0.7s;
      }
      span:nth-child(n+8){
          animation-delay: 0.8s;
      }
      span:nth-child(n+9){
          animation-delay: 0.9s;
      }
      @keyframes shadowing {
          to{
              color:#ff020f;
              text-shadow: 20px 0 70px #ff020f;
          }

      }
  </style>
html 复制代码
<div class="text-area">
      <span>加</span>
      <span>加</span>
      <span>加</span>
      <span>加</span>
      <span>油</span>
      <span>未</span>
      <span>来</span>
      <span>可</span>
      <span>期</span>
 </div>
相关推荐
QTX1873017 分钟前
使用 Axios 进行 API 请求与接口封装
javascript·vue.js·node.js
9ilk26 分钟前
【前端基础】--- HTML
前端·html
Lafar28 分钟前
Dart单线程怎么保证UI运行流畅
前端·面试
不和乔治玩的佩奇34 分钟前
【 设计模式】常见前端设计模式
前端
bloxed40 分钟前
vue+vite 减缓首屏加载压力和性能优化
前端·vue.js·性能优化
打野赵怀真1 小时前
React Hooks 的优势和使用场景
前端·javascript
HaushoLin1 小时前
ERR_PNPM_DLX_NO_BIN No binaries found in tailwindcss
前端·vue.js·css3·html5
Lafar1 小时前
Widget 树和 Element 树和RenderObject树是一一 对应的吗
前端
似水流年QC1 小时前
什么是Lodash
javascript·lodash
小桥风满袖1 小时前
炸裂,前端神级动效库合集
前端·css