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>
相关推荐
excel2 小时前
Prisma 查询不到 SQL 更新后的字段?先别急着重新打包
前端
狗头大军之江苏分军4 小时前
《潮水漫过十七岁》倒计时
前端·javascript·后端
小码哥0685 小时前
租房平台源码部署验收:房源样例、区域字典与看房预约逐项验证
前端·javascript·vue.js·租房小程序·租房系统·租房软件
htzyl2066 小时前
JS原型链与继承:class 底下到底是什么
前端·javascript·ecmascript 6
一条Go6 小时前
15 套品牌色 + 双模式:把颜色关进三层 token
前端·github
htzyl2066 小时前
JS-关于闭包捕获与释放
前端·javascript
狗头大军之江苏分军6 小时前
《潮水漫过十七岁》好久没写了
前端·javascript·后端
console.log('npc')6 小时前
Python第9课 类学习笔记,前端js语法对照
前端·python·学习
橙序员小站6 小时前
没有AI,我根本不知道同事有多苦
前端·微信小程序
ssshooter8 小时前
Replit 项目本地跑:一份实测过的改造清单
前端·后端·设计模式