CSS幽灵文字

在这里插入图片描述

    <div class="mask">
        <span style="--i:1">H</span>
        <span style="--i:2">E</span>
        <span style="--i:3">L</span>
        <span style="--i:4">L</span>
        <span style="--i:5">O</span>
        <span style="--i:6">W</span>
        <span style="--i:7">O</span>
        <span style="--i:8">R</span>
        <span style="--i:9">L</span>
        <span style="--i:10">D</span>
    </div>
    .mask {
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 50px;
        height: 100vh;
        background-color: #000;
        color: #fff;
        span {
            animation: blur 4s ease-in-out infinite;
            animation-delay: calc(0.2s*var(--i));
        }
    }
    @keyframes blur {
        0% {
            opacity: 1;
            filter: blur(0px);
            transform: scale(1);
        }
        30% {
            opacity: 0;
            filter: blur(20px);
            transform: scale(2);
        }
        60%,
        120% {
            opacity: 1;
            filter: blur(0px);
            transform: scale(1);
        }
    }

相关推荐

  1. css设置图片左上角加

    2024-05-16 12:44:03       33 阅读
  2. Diary11-Word

    2024-05-16 12:44:03       36 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-05-16 12:44:03       16 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-05-16 12:44:03       16 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-05-16 12:44:03       15 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-05-16 12:44:03       18 阅读

热门阅读

  1. 【Python】学生管理系统

    2024-05-16 12:44:03       13 阅读
  2. 2024.5.15晚训题解

    2024-05-16 12:44:03       11 阅读
  3. 【转】VS(Visual Studio)更改文件编码

    2024-05-16 12:44:03       12 阅读
  4. Sping @Autowired @Value @Resourece依赖注入原理

    2024-05-16 12:44:03       13 阅读
  5. spark分布式预测和保存过程中遇到的问题记录

    2024-05-16 12:44:03       12 阅读
  6. OpenCV 实时目标检测

    2024-05-16 12:44:03       12 阅读