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>
相关推荐
去伪存真18 分钟前
手把手教你实现用AI大模型做代码审查
前端·人工智能
科粒KL21 分钟前
前端学习笔记- 从 HTTP 1.1 到 3,再从 SSE 到 Streamable HTTP
前端·http
盘子素24 分钟前
前端实现有校验的大文件下载方案对比
前端
一颗奇趣蛋25 分钟前
React.memo & useMemo:为什么 React 里「看起来没变的组件」还是渲染了
前端·react.js
天蓝色的鱼鱼30 分钟前
Vue项目多级路径部署终极指南:基于环境变量的统一配置方案
前端·vue.js·架构
sixgod_h1 小时前
Threejs源码系列- MathUtils(1)
前端·webgl
lichenyang4531 小时前
从0开始的中后台管理系统-6(添加用户以及绑定角色给用户动态添加权限,以及在layout父路由组件去进行路径跳转判断)
前端
小高0071 小时前
协商缓存和强缓存
前端·javascript·面试
用户47949283569151 小时前
你真的很了解eslint吗?(代码检查工具的历史变革及底层原理)
前端
前端Hardy1 小时前
HTML&CSS&JS:超酷炫的一键登录页面
前端·javascript·css