CSS幽灵文字

xml 复制代码
    <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>
css 复制代码
    .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 分钟前
组件库的有些点击事件是name-click这是如何分装de
前端·javascript·vue.js
x***010612 分钟前
SpringSecurity+jwt实现权限认证功能
android·前端·后端
1024肥宅20 分钟前
防抖(Debounce)
前端·javascript·ecmascript 6
1024肥宅21 分钟前
节流(Throttle)
前端·javascript·ecmascript 6
大怪v24 分钟前
【Virtual World 02】两点一线!!!
javascript·css·html
by__csdn25 分钟前
Vue2纯前端图形验证码实现详解+源码
前端·javascript·typescript·vue·状态模式·css3·canva可画
w***375144 分钟前
Spring 核心技术解析【纯干货版】- Ⅶ:Spring 切面编程模块 Spring-Instrument 模块精讲
前端·数据库·spring
GISer_Jing1 小时前
jx前端架构学习
前端·学习·架构
间彧1 小时前
Tailwind CSS详解
前端
间彧1 小时前
Headless UI详解
前端