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>
相关推荐
Elcker1 小时前
YnuoAgent(依诺):一个 npm 包,跑起属于自己的 AI 研发平台
前端·人工智能·npm
酷炫码神1 小时前
Day 8|Vue3 响应式:告别手动操作 DOM,让数据驱动界面
javascript·vue.js·ecmascript
计算机魔术师1 小时前
发现2天,修复2个月:AI挖穿PHP后,卡兹克讲透攻防时间差
前端
风骏时光牛马1 小时前
测试标题001
前端
IT_陈寒2 小时前
Java性能优化完全指南
前端·人工智能·后端
电子IT笔记2 小时前
对接群晖NAS,上传和删除踩坑记录
前端·后端
计算机魔术师2 小时前
半年前说不缺钱,半年后150亿美元超募
前端
用户5708462574402 小时前
自动化发布器里最贵的 Bug:返回成功,但什么都没发生
前端
爱吃馒头不吃辣2 小时前
加一道题,改一天代码:题库即数据的降维打击
前端·架构
aiks_yuan2 小时前
Requestly规则使用技巧:前端联调、接口Mock与网络请求调试实战
前端